neovim/test/functional/plugin/lsp
Lewis Russell 9c20342297 fix(lsp): reuse client if configs match and no root dir
Problem:
An LSP configuration that creates client with no root_dir or
workspace_folders can result in vim.lsp.enable attaching to it multiple
times.

Solution:
When checking existing clients, reuse a client if it wasn't initially
configured have any workspace_folders. This more closely matches the
behaviour we had prior to d9235ef
2024-12-13 14:36:24 +00:00
..
codelens_spec.lua test: support upvalues in exec_lua 2024-09-21 16:04:09 +01:00
completion_spec.lua fix(lsp): reuse client if configs match and no root dir 2024-12-13 14:36:24 +00:00
diagnostic_spec.lua feat(lsp): deprecate vim.lsp.start_client #31341 2024-12-04 05:14:47 -08:00
folding_range_spec.lua feat(lsp): support textDocument/foldingRange (#31311) 2024-11-29 12:40:32 +00:00
incremental_sync_spec.lua refactor(lsp): rename offset_encoding to position_encoding #31286 2024-11-25 08:06:05 -08:00
inlay_hint_spec.lua fix(tests): needing two calls to setup a screen is cringe 2024-11-14 12:40:57 +01:00
semantic_tokens_spec.lua feat(lsp): deprecate vim.lsp.start_client #31341 2024-12-04 05:14:47 -08:00
snippet_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
testutil.lua feat(lsp): deprecate non-method client functions 2024-11-20 08:51:45 +00:00
utils_spec.lua fix(lsp): delete bufvar inside WinClosed event 2024-11-24 10:47:05 +00:00