You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `initializationOptions` filed of the `InitializeParams` of the initialization request should contain `"rust-analyzer"` section of the configuration.
33
+
34
+
`rust-analyzer` normally sends a `"workspace/configuration"` request with `{ "items": ["rust-analyzer"] }` payload.
35
+
However, the server can't do this during initialization.
36
+
At the same time some essential configuration parameters are needed early on, before servicing requests.
37
+
For this reason, we ask that `initializationOptions` contains the configuration, as if the server did make a `"workspace/configuration"` request.
29
38
30
-
For `initializationOptions`, `rust-analyzer` expects `"rust-analyzer"` section of the configuration.
31
-
That is, `rust-analyzer` usually sends `"workspace/configuration"` request with `{ "items": ["rust-analyzer"] }` payload.
32
-
`initializationOptions` should contain the same data that would be in the first item of the result.
33
39
If a language client does not know about `rust-analyzer`'s configuration options it can get sensible defaults by doing any of the following:
0 commit comments