summaryrefslogtreecommitdiff
path: root/test/tclient/tests/load-library.lua
diff options
context:
space:
mode:
authorcos <cos>2023-09-16 17:33:43 +0200
committercos <cos>2023-12-21 11:58:03 +0100
commit87477b92a13ec4c34c9453c5e72658f31275ac93 (patch)
tree27ceecee957edaf1f95308f0fe69e3fdaed80cb7 /test/tclient/tests/load-library.lua
parente7f01c1d3b67964ac80b223c1448840b3d388f81 (diff)
downloadlua-language-server-87477b92a13ec4c34c9453c5e72658f31275ac93.zip
Only call workspace/configuration when availablefix/honour_configuration_capability-3.7.3
Not all clients implement the client capability: `configuration`, which was added in version 3.6.0 of the Language Server Protocol. The LSP Specification also states: > A missing property should be interpreted as an absence of the capability. Hence this change modifies behaviour to only call the method on clients explicitly announcing to support it. Most affected test-cases are updated to work with this commit, however one test gets disabled. That disabled test suite is in serious need of added documentation explaining its design. The few comments which are there seem highly unsufficient, and since they are written in simplified chinese they practically are of no use. This commit makes the lua-language-server work with vim-ale.
Diffstat (limited to 'test/tclient/tests/load-library.lua')
-rw-r--r--test/tclient/tests/load-library.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/tclient/tests/load-library.lua b/test/tclient/tests/load-library.lua
index cbd1492a..a2d7d2bc 100644
--- a/test/tclient/tests/load-library.lua
+++ b/test/tclient/tests/load-library.lua
@@ -25,7 +25,13 @@ lclient():start(function (client)
util.saveFile(libraryFilePath, 'LIBRARY_FILE = true')
end
- client:initialize()
+ client:initialize {
+ capabilities = {
+ workspace = {
+ configuration = true,
+ }
+ }
+ }
client:notify('textDocument/didOpen', {
textDocument = {