Compartilhar via


DiagnosticsReporter Class

Definition

Provides functionality for extending Visual Studio through brokered services for Language Services.

public sealed class DiagnosticsReporter : Microsoft.VisualStudio.Extensibility.ExtensibilityPoint
type DiagnosticsReporter = class
    inherit ExtensibilityPoint
Public NotInheritable Class DiagnosticsReporter
Inherits ExtensibilityPoint
Inheritance
DiagnosticsReporter

Constructors

DiagnosticsReporter(ExtensibilityPoint)

Initializes a new instance of the DiagnosticsReporter class.

Methods

ClearDiagnosticsAsync(ITextDocumentSnapshot, CancellationToken)

Clears all previous reported diagnostics by this generator for a given open document.

ClearDiagnosticsAsync(Uri, CancellationToken)

Clears all previous reported diagnostics by this generator for a given closed document.

ReportDiagnosticAsync(DocumentDiagnostic, CancellationToken)

Reports a single diagnostic with diagnostic by adding them to the previously reported list.

ReportDiagnosticsAsync(IEnumerable<DocumentDiagnostic>, CancellationToken)

Reports diagnostics with diagnostics by adding them to the previously reported list.

Applies to