diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/util.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua index bb8af331..cc9d9956 100644 --- a/lua/lspconfig/util.lua +++ b/lua/lspconfig/util.lua @@ -244,8 +244,9 @@ function M.server_per_root_dir_manager(make_config) if client and client.name == conf.name - and client.supports_method - and client.supports_method 'workspace/workspaceFolders' + and client.config + and client.config.capabilities + and client.config.capabilities.workspace then return client end |
