diff options
author | Aleksey Kladov <[email protected]> | 2020-06-01 16:42:46 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-06-01 16:42:46 +0100 |
commit | aaa288126bd27f7b4d3d87827d1b8d3adf01d584 (patch) | |
tree | 7ae4a168c4ef709623c0464d82ffce09b2aae39f /docs/dev | |
parent | d23814bf3dd3429b35690ba0f57e0b0bb0913d7d (diff) |
Document initilizationOptions used by rust-analyzer
Diffstat (limited to 'docs/dev')
-rw-r--r-- | docs/dev/lsp-extensions.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md index dbc95be38..6b2d385fc 100644 --- a/docs/dev/lsp-extensions.md +++ b/docs/dev/lsp-extensions.md | |||
@@ -7,6 +7,14 @@ All capabilities are enabled via `experimental` field of `ClientCapabilities` or | |||
7 | Requests which we hope to upstream live under `experimental/` namespace. | 7 | Requests which we hope to upstream live under `experimental/` namespace. |
8 | Requests, which are likely to always remain specific to `rust-analyzer` are under `rust-analyzer/` namespace. | 8 | Requests, which are likely to always remain specific to `rust-analyzer` are under `rust-analyzer/` namespace. |
9 | 9 | ||
10 | ## `initializationOptions` | ||
11 | |||
12 | As `initializationOptions`, `rust-analyzer` expects `"rust-analyzer"` section of the configuration. | ||
13 | That is, `rust-analyzer` usually sends `"workspace/configuration"` request with `{ "items": ["rust-analyzer"] }` payload. | ||
14 | `initializationOptions` should contain the same data that would be in the first item of the result. | ||
15 | It's OK to not send anything, then all the settings would take their default values. | ||
16 | However, some settings can not be changed after startup at the moment. | ||
17 | |||
10 | ## Snippet `TextEdit` | 18 | ## Snippet `TextEdit` |
11 | 19 | ||
12 | **Issue:** https://github.com/microsoft/language-server-protocol/issues/724 | 20 | **Issue:** https://github.com/microsoft/language-server-protocol/issues/724 |