diff options
author | cos <cos> | 2023-09-16 17:33:43 +0200 |
---|---|---|
committer | cos <cos> | 2024-03-26 14:21:08 +0100 |
commit | 281985d72ae24e72cf1677e20239330377d0a7d1 (patch) | |
tree | e92125c6ebccbbab155cbbc5a639dd970720652a /test/tclient/tests/multi-workspace.lua | |
parent | 968419bb5b89a110c44a064de71cd8964be19c4d (diff) | |
download | lua-language-server-fix/honour_configuration_capability-3.7.4.zip |
Only call workspace/configuration when availablefix/honour_configuration_capability-3.7.4
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/multi-workspace.lua')
-rw-r--r-- | test/tclient/tests/multi-workspace.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/tclient/tests/multi-workspace.lua b/test/tclient/tests/multi-workspace.lua index c4636c53..7660f03d 100644 --- a/test/tclient/tests/multi-workspace.lua +++ b/test/tclient/tests/multi-workspace.lua @@ -55,6 +55,11 @@ lclient():start(function (client) name = 'ws2', uri = rootUri .. '/ws2', }, + }, + capabilities = { + workspace = { + configuration = true, + } } } |