Merge #4688
4688: Document initilizationOptions used by rust-analyzer r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
abf7d1747d
@ -7,6 +7,16 @@ All capabilities are enabled via `experimental` field of `ClientCapabilities` or
|
||||
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.
|
||||
|
||||
If you want to be notified about the changes to this document, subscribe to [#4604](https://github.com/rust-analyzer/rust-analyzer/issues/4604).
|
||||
|
||||
## `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`
|
||||
|
||||
**Issue:** https://github.com/microsoft/language-server-protocol/issues/724
|
||||
|
Loading…
Reference in New Issue
Block a user