From 5d8288c794de811d41490ed6f616d6271e2c1c98 Mon Sep 17 00:00:00 2001 From: glepnir Date: Wed, 27 Nov 2024 13:13:20 +0800 Subject: fix: using method string instead constant (#3468) Using method string instead constant avoid nil error in low release version --- lua/lspconfig/manager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/lspconfig/manager.lua') diff --git a/lua/lspconfig/manager.lua b/lua/lspconfig/manager.lua index 16bf17c0..37ba0c58 100644 --- a/lua/lspconfig/manager.lua +++ b/lua/lspconfig/manager.lua @@ -73,7 +73,7 @@ function M:_notify_workspace_folder_added(root_dir, client) removed = {}, }, } - client.rpc.notify(lsp.protocol.Methods.workspace_didChangeWorkspaceFolders, params) + client.rpc.notify('workspace/didChangeWorkspaceFolders', params) if not client.workspace_folders then client.workspace_folders = {} end -- cgit v1.2.3-70-g09d2