-
-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only call workspace/configuration when available
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. Above claims are possible to verify by reading the mentioned spec. at: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_configuration Hence this change modifies behaviour to only call the method on clients explicitly announcing to support it. This commit makes the lua-language-server work with vim-ale. Thanks to Tom Lau for assistance in getting the test-setup updated.
- Loading branch information
cos
committed
Sep 9, 2024
1 parent
a126e9c
commit c900372
Showing
3 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,9 @@ local defaultClientOptions = { | |
}, | ||
}, | ||
}, | ||
workspace = { | ||
configuration = true, | ||
}, | ||
}, | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters