mirror of
https://github.com/neovim/neovim
synced 2025-07-18 18:21:46 +00:00
LSP: set InitializeParams.rootPath value #11838
InitializeParams.rootPath is deprecated now. But some language servers still use it.
This commit is contained in:
@ -452,7 +452,7 @@ function lsp.start_client(config)
|
|||||||
-- The rootPath of the workspace. Is null if no folder is open.
|
-- The rootPath of the workspace. Is null if no folder is open.
|
||||||
--
|
--
|
||||||
-- @deprecated in favour of rootUri.
|
-- @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
|
-- The rootUri of the workspace. Is null if no folder is open. If both
|
||||||
-- `rootPath` and `rootUri` are set `rootUri` wins.
|
-- `rootPath` and `rootUri` are set `rootUri` wins.
|
||||||
rootUri = vim.uri_from_fname(config.root_dir);
|
rootUri = vim.uri_from_fname(config.root_dir);
|
||||||
|
Reference in New Issue
Block a user