watchDiagnostics
Poll for diagnostic changes after edits, waiting for LSP re-validation to return updated diagnostics.
Instructions
Long-poll for diagnostic changes. Use after edits to wait for LSP re-validation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Optional: only watch diagnostics for this specific file | |
| timeoutMs | No | Max wait time in milliseconds (default: 10000, max: 30000) | |
| sinceTimestamp | No | Only return if diagnostics changed after this timestamp (from a previous watchDiagnostics call) |