lsp_diagnostics
Retrieve cached diagnostics for a specific file or the entire workspace. Automatically warms the cache when workspace-wide diagnostics are requested.
Instructions
Return cached diagnostics for a file or the whole workspace. Triggers warm-up if workspaceWide is requested and cache is empty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Absolute or workspace-relative path to a file. | |
| severity | No | Filter by severity. | all |
| maxResults | No | Maximum number of results to return. | |
| workspaceWide | No | If true, warm the workspace and return diagnostics for all files. |