aboutsummaryrefslogtreecommitdiff
path: root/test/functional/fixtures
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2020-12-31 05:41:43 -0800
committerMichael Lingelbach <m.j.lbach@gmail.com>2021-01-01 01:40:46 -0800
commitf3bbc92476df1112deb34b9c7408cd594ee47a50 (patch)
treec5ecfa4100bb029b55ca3087c336249255799535 /test/functional/fixtures
parente467d29390495ac05dd99942339640bfaacd4108 (diff)
downloadrneovim-f3bbc92476df1112deb34b9c7408cd594ee47a50.tar.gz
rneovim-f3bbc92476df1112deb34b9c7408cd594ee47a50.tar.bz2
rneovim-f3bbc92476df1112deb34b9c7408cd594ee47a50.zip
LSP: add test for workspace/configuration handler
Diffstat (limited to 'test/functional/fixtures')
-rw-r--r--test/functional/fixtures/fake-lsp-server.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/fixtures/fake-lsp-server.lua b/test/functional/fixtures/fake-lsp-server.lua
index a30eb748d0..252db88b6b 100644
--- a/test/functional/fixtures/fake-lsp-server.lua
+++ b/test/functional/fixtures/fake-lsp-server.lua
@@ -109,6 +109,23 @@ function tests.basic_init()
}
end
+function tests.check_workspace_configuration()
+ skeleton {
+ on_init = function(_params)
+ return { capabilities = {} }
+ end;
+ body = function()
+ notify('start')
+ notify('workspace/configuration', { items = {
+ { section = "testSetting1" };
+ { section = "testSetting2" };
+ } })
+ expect_notification('workspace/configuration', { true; vim.NIL})
+ notify('shutdown')
+ end;
+ }
+end
+
function tests.basic_check_capabilities()
skeleton {
on_init = function(params)