roslyn:get_diagnostics
Retrieve compiler diagnostics like errors and warnings for C# files or projects to identify issues before committing code changes.
Instructions
Get compiler errors, warnings, and info messages for a file or entire project. Returns: list of diagnostics with id, message, severity, and location. Use before committing to catch issues.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Optional: path to specific file, omit for all files | |
| projectPath | No | Optional: path to specific project | |
| severity | No | Optional: filter by severity (Error, Warning, Info) | |
| includeHidden | No | Include hidden diagnostics (default: false) |