Method HasCodeFixes
HasCodeFixes(Document, TextSpan, Diagnostic, bool, CancellationToken)
When implemented by a class, indicates whether the document has any code fixes for the specified text span.
Task<bool> HasCodeFixes(Document document, TextSpan textSpan, Diagnostic diagnostic, bool allDocuments, CancellationToken cancellationToken)
Parameters
document
DocumentThe document to fix.
textSpan
TextSpanText span within the document.
diagnostic
DiagnosticDiagnostics to fix. All the diagnostics must have the same span.
allDocuments
boolIndicates whether all documents should be processed.
cancellationToken
CancellationTokenCancellation token.