Skip to main content

get_code_fixes

Get available code fixes for a specific diagnostic at a file location. Returns structured text edits that can be reviewed and applied.

Parameters

ParameterTypeRequiredDescription
diagnosticIdstringDiagnostic ID (e.g., 'CA1822', 'CS0168')
filePathstringFull path to the source file
lineintLine number where the diagnostic occurs