diff options
| author | David Barsky <me@davidbarsky.com> | 2023-11-07 16:26:32 -0500 |
|---|---|---|
| committer | David Barsky <me@davidbarsky.com> | 2024-02-08 14:23:00 -0500 |
| commit | 6330b028b3f4d10220170fa995aeeb0655f9e8dc (patch) | |
| tree | ad3606ed7fb4ba79c1df7d1f9ad70bb7b3774fcf /docs/dev | |
| parent | ca44e1ee9f993d9e7a4fbb83eea3f28aaf0f0306 (diff) | |
| download | rust-6330b028b3f4d10220170fa995aeeb0655f9e8dc.tar.gz rust-6330b028b3f4d10220170fa995aeeb0655f9e8dc.zip | |
feature: Add a `UnindexedProject` notification and a corresponding setting.
Diffstat (limited to 'docs/dev')
| -rw-r--r-- | docs/dev/lsp-extensions.md | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md index dd6f1be4000..f3100ee194e 100644 --- a/docs/dev/lsp-extensions.md +++ b/docs/dev/lsp-extensions.md @@ -1,5 +1,5 @@ <!--- -lsp/ext.rs hash: c0bf3acd7a9e72b2 +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 }` |
