diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2024-03-31 09:57:00 +0300 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2024-03-31 09:57:00 +0300 |
| commit | a4e02d70376d4440dd0a9d78cb558ce328c85868 (patch) | |
| tree | f61a24451615b0e8b0bde5fc2350a8eb7e7d12fc /src/tools/rust-analyzer/docs/dev | |
| parent | 5f358a848cd4a553aae9ea82cf7a9d3660977221 (diff) | |
| parent | f5a9250147f6569d8d89334dc9cca79c0322729f (diff) | |
| download | rust-a4e02d70376d4440dd0a9d78cb558ce328c85868.tar.gz rust-a4e02d70376d4440dd0a9d78cb558ce328c85868.zip | |
Merge commit 'f5a9250147f6569d8d89334dc9cca79c0322729f' into sync-from-ra
Diffstat (limited to 'src/tools/rust-analyzer/docs/dev')
| -rw-r--r-- | src/tools/rust-analyzer/docs/dev/lsp-extensions.md | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/tools/rust-analyzer/docs/dev/lsp-extensions.md b/src/tools/rust-analyzer/docs/dev/lsp-extensions.md index cf9ad5fe04d..939b1819c7e 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: 61f485497d6e8e88 +lsp/ext.rs hash: 223f48a89a5126a0 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: @@ -417,7 +417,7 @@ interface TestItem { // A human readable name for this test label: string; // The kind of this test item. Based on the kind, - // an icon is chosen by the editor. + // an icon is chosen by the editor. kind: "package" | "module" | "test"; // True if this test may have children not available eagerly canResolveChildren: boolean; @@ -440,7 +440,11 @@ interface DiscoverTestResults { // For each test which its id is in this list, the response // contains all tests that are children of this test, and // client should remove old tests not included in the response. - scope: string[]; + scope: string[] | undefined; + // For each file which its uri is in this list, the response + // contains all tests that are located in this file, and + // client should remove old tests not included in the response. + scopeFile: lc.TextDocumentIdentifier[] | undefined; } ``` @@ -492,9 +496,9 @@ a `experimental/endRunTest` when is done. **Notification:** `ChangeTestStateParams` ```typescript -type TestState = { tag: "passed" } +type TestState = { tag: "passed" } | { - tag: "failed"; + tag: "failed"; // The standard error of the test, containing the panic message. Clients should // render it similar to a terminal, and e.g. handle ansi colors. message: string; |
