diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2024-02-11 08:40:19 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2024-02-11 08:40:19 +0200 |
| commit | 022af828278f568cc2a92c845836d2632d7a69e5 (patch) | |
| tree | 1e607db1219ad4563ed379cb3eec6bf138ee03e6 /src/tools/rust-analyzer/docs | |
| parent | 9aa232ecc7bb006a1fad404f437b049482021a3a (diff) | |
| parent | ddf105b646c6749a2de2451c9a499a354eec79c2 (diff) | |
Merge commit 'ddf105b646c6749a2de2451c9a499a354eec79c2' into sync-from-ra
Diffstat (limited to 'src/tools/rust-analyzer/docs')
| -rw-r--r-- | src/tools/rust-analyzer/docs/dev/lsp-extensions.md | 21 | ||||
| -rw-r--r-- | src/tools/rust-analyzer/docs/user/generated_config.adoc | 11 |
2 files changed, 31 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/docs/dev/lsp-extensions.md b/src/tools/rust-analyzer/docs/dev/lsp-extensions.md index bc558c20247..f3100ee194e 100644 --- a/src/tools/rust-analyzer/docs/dev/lsp-extensions.md +++ b/src/tools/rust-analyzer/docs/dev/lsp-extensions.md @@ -1,5 +1,5 @@ <!--- -lsp/ext.rs hash: dff0b009e82ef06a +lsp/ext.rs hash: 8be79cc3b7f10ad7 If you need to change the above hash to make the test pass, please check if you need to adjust this doc as well and ping this issue: @@ -445,6 +445,25 @@ Reloads project information (that is, re-executes `cargo metadata`). Rebuilds build scripts and proc-macros, and runs the build scripts to reseed the build data. +## Unindexed Project + +**Experimental Client Capability:** `{ "unindexedProject": boolean }` + +**Method:** `rust-analyzer/unindexedProject` + +**Notification:** + +```typescript +interface UnindexedProjectParams { + /// A list of documents that rust-analyzer has determined are not indexed. + textDocuments: lc.TextDocumentIdentifier[] +} +``` + +This notification is sent from the server to the client. The client is expected +to determine the appropriate owners of `textDocuments` and update `linkedProjects` +if an owner can be determined successfully. + ## Server Status **Experimental Client Capability:** `{ "serverStatusNotification": boolean }` diff --git a/src/tools/rust-analyzer/docs/user/generated_config.adoc b/src/tools/rust-analyzer/docs/user/generated_config.adoc index cfa7503d739..a86ef709411 100644 --- a/src/tools/rust-analyzer/docs/user/generated_config.adoc +++ b/src/tools/rust-analyzer/docs/user/generated_config.adoc @@ -251,6 +251,12 @@ Can be a single target, e.g. `"x86_64-unknown-linux-gnu"` or a list of targets, Aliased as `"checkOnSave.targets"`. -- +[[rust-analyzer.check.workspace]]rust-analyzer.check.workspace (default: `true`):: ++ +-- +Whether `--workspace` should be passed to `cargo check`. +If false, `-p <package>` will be passed instead. +-- [[rust-analyzer.completion.autoimport.enable]]rust-analyzer.completion.autoimport.enable (default: `true`):: + -- @@ -745,6 +751,11 @@ Sets the LRU capacity of the specified queries. -- Whether to show `can't find Cargo.toml` error message. -- +[[rust-analyzer.notifications.unindexedProject]]rust-analyzer.notifications.unindexedProject (default: `false`):: ++ +-- +Whether to send an UnindexedProject notification to the client. +-- [[rust-analyzer.numThreads]]rust-analyzer.numThreads (default: `null`):: + -- |
