From 212b99bc12a5416df8b2a610711ba399e2fc388a Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 25 Dec 2022 19:53:42 +0800 Subject: fix: use client config capabilities to check server support workspae (#2354) --- lua/lspconfig/util.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lua') 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 -- cgit v1.2.3-70-g09d2