on master help sign in
Clarify language-servers documentation for mergeable LSP features (`diagnostics`, `code-action`, `completion`, `document-symbols` and `workspace-symbols`)
f8fa0d8Philipp Mildenberger
book/src/languages.md+1
@@ -168,6 +168,7 @@ language-servers = [ { name = "typescript-language-server", except-features = [
168
168
169Each requested LSP feature is prioritized in the order of the `language-servers` array.
169Each requested LSP feature is prioritized in the order of the `language-servers` array.
170For 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`).
170For 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`).
171+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.
171If no `except-features` or `only-features` is given all features for the language server are enabled.
172If no `except-features` or `only-features` is given all features for the language server are enabled.
172If a language server itself doesn't support a feature the next language server array entry will be tried (and so on).
173If a language server itself doesn't support a feature the next language server array entry will be tried (and so on).
173
174