aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/lsp_spec.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-11-21 11:39:30 -0500
committerGitHub <noreply@github.com>2021-11-21 11:39:30 -0500
commita2749482d9e73b8149ff73af6da1878a5c218fe5 (patch)
tree9004531221025821b87d797849b06c420b0150f2 /test/functional/plugin/lsp_spec.lua
parent120a88163078e61b272e9629138642bc5df80e4a (diff)
downloadrneovim-a2749482d9e73b8149ff73af6da1878a5c218fe5.tar.gz
rneovim-a2749482d9e73b8149ff73af6da1878a5c218fe5.tar.bz2
rneovim-a2749482d9e73b8149ff73af6da1878a5c218fe5.zip
chore(lsp): clean up initialization process (#16369)
* send vim.NIL instead of not sending workspaceFolders * read fallback rootPath and rootUri from workspaceFolders * update documentation
Diffstat (limited to 'test/functional/plugin/lsp_spec.lua')
-rw-r--r--test/functional/plugin/lsp_spec.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua
index 228fc06e9b..b12d4227d5 100644
--- a/test/functional/plugin/lsp_spec.lua
+++ b/test/functional/plugin/lsp_spec.lua
@@ -66,7 +66,10 @@ local function fake_lsp_server_setup(test_name, timeout_ms, options)
end
end;
});
- root_dir = vim.loop.cwd();
+ workspace_folders = {{
+ uri = 'file://' .. vim.loop.cwd(),
+ name = 'test_folder',
+ }};
on_init = function(client, result)
TEST_RPC_CLIENT = client
vim.rpcrequest(1, "init", result)
@@ -153,7 +156,10 @@ describe('LSP', function()
"-c", string.format("lua TEST_NAME = %q", test_name),
"-c", "luafile "..fixture_filename;
};
- root_dir = vim.loop.cwd();
+ workspace_folders = {{
+ uri = 'file://' .. vim.loop.cwd(),
+ name = 'test_folder',
+ }};
}
end
TEST_CLIENT1 = test__start_client()