Share via


DiagnosticsReporter.ClearDiagnosticsAsync Method

Definition

Overloads

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.

ClearDiagnosticsAsync(ITextDocumentSnapshot, CancellationToken)

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

public System.Threading.Tasks.Task ClearDiagnosticsAsync (Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot textDocument, System.Threading.CancellationToken cancellationToken);
member this.ClearDiagnosticsAsync : Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ClearDiagnosticsAsync (textDocument As ITextDocumentSnapshot, cancellationToken As CancellationToken) As Task

Parameters

textDocument
ITextDocumentSnapshot

Text document to clear diagnostic entries for.

cancellationToken
CancellationToken

A cancellation token to cancel the in-progress invocation.

Returns

A Task representing the asynchronous operation.

Applies to

ClearDiagnosticsAsync(Uri, CancellationToken)

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

public System.Threading.Tasks.Task ClearDiagnosticsAsync (Uri documentMoniker, System.Threading.CancellationToken cancellationToken);
member this.ClearDiagnosticsAsync : Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ClearDiagnosticsAsync (documentMoniker As Uri, cancellationToken As CancellationToken) As Task

Parameters

documentMoniker
Uri

Document URI to clear diagnostic entries for.

cancellationToken
CancellationToken

A cancellation token to cancel the in-progress invocation.

Returns

A Task representing the asynchronous operation.

Applies to