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
{{ message }}
Repository navigation
Commit cf2f260
Browse filesBrowse the repository at this point in the historyBrowse files
|`lsp.mergeCompletions`| Choose which candidates survive when several prioritized providers complete at one position |
673
673
|`lsp.activationPolicy`| Decide whether a language server may start automatically after failures, using a platform monotonic clock |
674
-
|`lsp.problems.query`| Filter, order, and group Problems tool-window diagnostics and count them by severity |
674
+
|`lsp.problems.query`| Filter, order, and group Problems tool-window diagnostics, count them by severity, and lay the tree rows out|
675
675
|`lsp.references.query`| Group Find Usages locations by file and lay out the References tool window's visible rows, selection, and previous/next usages |
676
676
|`lsp.references.lines`| Show the lines of References tool-window usages with highlighted usage ranges, as search results show theirs |
677
677
|`lsp.startServer`| Start one Rust-owned process/session and begin initialization |
@@ -2979,8 +2979,24 @@ stable `key`, `indices` into the submitted list, and per-severity `counts`),
2979
2979
`files` (file summaries in file order regardless of `groupBy`),
2980
2980
`visibleCounts`, and `totalCounts`. `fileKey` is the platform's native file
2981
2981
identity; `displayPath` is the workspace-relative path and orders files with
2982
-
the Project view's natural file-name order. Severity is the LSP number;
2983
-
missing or out-of-range values are unknown (`0`) and rank last. Cases:
2982
+
the Project view's natural file-name order; file groups also carry `name`
2983
+
(its last segment) and `folder` (the rest, empty at the root). Severity is the
2984
+
LSP number; missing or out-of-range values are unknown (`0`) and rank last.
2985
+
The request also carries the platform-held tree state: `collapsed` (the keys
2986
+
of closed group nodes; unknown keys are ignored) and the `selected` row key.
2987
+
The response lays the tree out the way IntelliJ IDEA's Problems window does:
2988
+
`rows` are the rows that show from top to bottom, each with `key`, `kind`
2989
+
(`group`, `diagnostic`), `depth`, `expanded` (group nodes only), `group`, and
2990
+
`shows` (the diagnostic the row previews and opens: itself, or the first under
2991
+
a node). Group nodes (`file:<fileKey>`, `severity:<n>`) head their diagnostics
2992
+
at depth 1; with `groupBy``none` there are no nodes and the diagnostics sit at
2993
+
depth 0. A diagnostic's key is `diagnostic:<line>:<column>:<ordinal>:<fileKey>`,
2994
+
where `ordinal` counts the earlier submitted diagnostics at the same file and
2995
+
position, so a selection stays on a diagnostic the server republishes at
2996
+
another index. `selected` and `selectedRow` name the selected row: an absent
2997
+
or unknown key selects nothing, a diagnostic a closed node hides moves the
2998
+
selection to that node, and a diagnostic that is gone moves it to its file's
2999
+
node when the list is grouped by file and the file still shows. Cases:
2984
3000
`rust/fixtures/lsp/problems-query-v1.json`.
2985
3001
2986
3002
`lsp.references.query` accepts the Find Usages answer as
0 commit comments