Freigeben über


ITextViewOpenClosedListener.TextViewClosedAsync Method

Definition

Called when an ITextViewSnapshot with matching document type is closed.

public System.Threading.Tasks.Task TextViewClosedAsync (Microsoft.VisualStudio.Extensibility.Editor.ITextViewSnapshot textView, System.Threading.CancellationToken cancellationToken);
abstract member TextViewClosedAsync : Microsoft.VisualStudio.Extensibility.Editor.ITextViewSnapshot * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function TextViewClosedAsync (textView As ITextViewSnapshot, cancellationToken As CancellationToken) As Task

Parameters

textView
ITextViewSnapshot

The ITextViewSnapshot that was closed.

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

A Task representing the asynchronous operation.

Remarks

Special scenarios: - Document type changes from a matching document type to an unmatching, such as when the user changes the file extension, are considered 'text view closes' for the purposes of this API.

Applies to