mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +00:00
Document initilizationOptions used by rust-analyzer
This commit is contained in:
parent
d23814bf3d
commit
aaa288126b
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,14 @@ All capabilities are enabled via `experimental` field of `ClientCapabilities` or
|
||||||
Requests which we hope to upstream live under `experimental/` namespace.
|
Requests which we hope to upstream live under `experimental/` namespace.
|
||||||
Requests, which are likely to always remain specific to `rust-analyzer` are under `rust-analyzer/` namespace.
|
Requests, which are likely to always remain specific to `rust-analyzer` are under `rust-analyzer/` namespace.
|
||||||
|
|
||||||
|
## `initializationOptions`
|
||||||
|
|
||||||
|
As `initializationOptions`, `rust-analyzer` expects `"rust-analyzer"` section of the configuration.
|
||||||
|
That is, `rust-analyzer` usually sends `"workspace/configuration"` request with `{ "items": ["rust-analyzer"] }` payload.
|
||||||
|
`initializationOptions` should contain the same data that would be in the first item of the result.
|
||||||
|
It's OK to not send anything, then all the settings would take their default values.
|
||||||
|
However, some settings can not be changed after startup at the moment.
|
||||||
|
|
||||||
## Snippet `TextEdit`
|
## Snippet `TextEdit`
|
||||||
|
|
||||||
**Issue:** https://github.com/microsoft/language-server-protocol/issues/724
|
**Issue:** https://github.com/microsoft/language-server-protocol/issues/724
|
||||||
|
|
Loading…
Reference in a new issue