]> Sergey Matveev's repositories - vim-lsp.git/commit
Skip invalid servers instead of aborting in LspAddServer()
authorMagnus Groß <magnus@mggross.com>
Wed, 31 May 2023 20:01:47 +0000 (22:01 +0200)
committerMagnus Groß <magnus@mggross.com>
Wed, 31 May 2023 21:03:51 +0000 (23:03 +0200)
commit9a4edafe09ccd0759675482bce720f2a0aec3386
tree122c73fc274115d77bc99cb1b0e8a569710790e2
parent352cb4a446d4a0eb1072202a4ff2dde861128c01
Skip invalid servers instead of aborting in LspAddServer()

If the user calls LspAddServer() with a list of servers, where the very
first entry does not exist, but all the remaining ones do, then no
servers are added at all. This doesn't make much sense, as the other
entries might be valid entries.

Fix this by simply continuing with the next entry instead of returning
when encountering an error.
autoload/lsp/lsp.vim