aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/lsp_spec.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-02-07 13:05:33 +0000
committerLewis Russell <lewis6991@gmail.com>2024-03-01 22:30:27 +0000
commit816b56f878f0291c00a9018d5057b7b2b00f1891 (patch)
tree50fbe6df105bfb70aa315a376432ed5e5a48304c /test/functional/plugin/lsp_spec.lua
parentbf1e098d971d455cba1bdc9f6b2e777572fd6b16 (diff)
downloadrneovim-816b56f878f0291c00a9018d5057b7b2b00f1891.tar.gz
rneovim-816b56f878f0291c00a9018d5057b7b2b00f1891.tar.bz2
rneovim-816b56f878f0291c00a9018d5057b7b2b00f1891.zip
fix(lsp): cancel watchers when closing a client
Diffstat (limited to 'test/functional/plugin/lsp_spec.lua')
-rw-r--r--test/functional/plugin/lsp_spec.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua
index 79fa4786d2..1610351090 100644
--- a/test/functional/plugin/lsp_spec.lua
+++ b/test/functional/plugin/lsp_spec.lua
@@ -4573,6 +4573,8 @@ describe('LSP', function()
wait_for_message()
+ vim.lsp.stop_client(client_id)
+
return server.messages
]],
root_dir,
@@ -4581,7 +4583,7 @@ describe('LSP', function()
local uri = vim.uri_from_fname(root_dir .. '/watch')
- eq(4, #result)
+ eq(6, #result)
eq({
method = 'workspace/didChangeWatchedFiles',