From dd8b29cfe25604c062b76bb3a9347c5d740365ba Mon Sep 17 00:00:00 2001 From: Hirokazu Hata Date: Sun, 9 Feb 2020 15:51:02 +0900 Subject: LSP: set InitializeParams.rootPath value #11838 InitializeParams.rootPath is deprecated now. But some language servers still use it. --- runtime/lua/vim/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index cfa208f21c..304686a816 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -452,7 +452,7 @@ function lsp.start_client(config) -- The rootPath of the workspace. Is null if no folder is open. -- -- @deprecated in favour of rootUri. - rootPath = nil; + rootPath = config.root_dir; -- The rootUri of the workspace. Is null if no folder is open. If both -- `rootPath` and `rootUri` are set `rootUri` wins. rootUri = vim.uri_from_fname(config.root_dir); -- cgit