diff options
author | Philipp Mildenberger | 2023-04-14 12:54:04 +0000 |
---|---|---|
committer | Philipp Mildenberger | 2023-05-18 20:11:38 +0000 |
commit | f8fa0d8a10e14272742af907ae0aeaef2411ad93 (patch) | |
tree | fbabe2c434a152bcf47e3843144c28ff6a947284 /book/src | |
parent | b6d0e26814c0e2c40a2ff49b2c3be7c8358d438b (diff) |
Clarify language-servers documentation for mergeable LSP features (`diagnostics`, `code-action`, `completion`, `document-symbols` and `workspace-symbols`)
Diffstat (limited to 'book/src')
-rw-r--r-- | book/src/languages.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/book/src/languages.md b/book/src/languages.md index 3f244566..e28ebb5a 100644 --- a/book/src/languages.md +++ b/book/src/languages.md @@ -168,6 +168,7 @@ language-servers = [ { name = "typescript-language-server", except-features = [ Each requested LSP feature is prioritized in the order of the `language-servers` array. For example the first `goto-definition` supported language server (in this case `typescript-language-server`) will be taken for the relevant LSP request (command `goto_definition`). +The features `diagnostics`, `code-action`, `completion`, `document-symbols` and `workspace-symbols` are an exception to that rule, as they are working for all language servers at the same time and are merged together, if enabled for the language. If no `except-features` or `only-features` is given all features for the language server are enabled. If a language server itself doesn't support a feature the next language server array entry will be tried (and so on). |