Existing language server instances with different root_dir
s are reused, out of accordance with lspconfig's documentation
#3531
Labels
bug
Something isn't working
Description
This is essentially a duplicate of #2967 which was incorrectly closed (lspconfig does indeed manage launching of servers.).
The help docs for lspconfig say:
nvim-lspconfig/doc/lspconfig.txt
Lines 62 to 63 in 57154fd
But this is not the case. See the following code which causes existing language servers with the same name to be reused.
nvim-lspconfig/lua/lspconfig/manager.lua
Lines 133 to 136 in 57154fd
Either the code should be updated to match the docs, or the docs should be corrected and a new flag should be added to indicate that unique root dirs should always launch new language server instances. I am happy to try out a PR if the maintainers have a preference for either of those solutions.
The text was updated successfully, but these errors were encountered: