diagnostics
Get LSP errors, warnings, and hints for one file, multiple files, or the entire workspace. Pass URIs to target specific files; omit to include all files.
Instructions
Return LSP errors, warnings, and hints for one file, several files, or the whole workspace. Pass uris (a list of file:// URIs) to check specific files — omit or pass [] to query all files. A single call with multiple URIs replaces multiple single-file calls. Results are pushed by the language server as it analyses code; they may be empty if the server has not yet sent any diagnostics — a report taken while the server is still warming is labelled INCOMPLETE, so a clean result then is not proof the code compiles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | Deprecated — use uris instead. Single file:// URI; equivalent to uris: [uri]. | |
| uris | No | Absolute paths, file:// URIs, or workspace-relative paths to fetch diagnostics for. Omit or pass [] to return diagnostics for all files that have issues. Pass one for a single-file query. Pass multiple to check a specific set of files in one call. |