Share via


InvokableCodeLens.ExecuteAsync Method

Definition

Invoke this CodeLens given the context information.

public abstract System.Threading.Tasks.Task ExecuteAsync (Microsoft.VisualStudio.Extensibility.Editor.CodeElementContext codeElementContext, Microsoft.VisualStudio.Extensibility.IClientContext clientContext, System.Threading.CancellationToken cancelToken);
abstract member ExecuteAsync : Microsoft.VisualStudio.Extensibility.Editor.CodeElementContext * Microsoft.VisualStudio.Extensibility.IClientContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function ExecuteAsync (codeElementContext As CodeElementContext, clientContext As IClientContext, cancelToken As CancellationToken) As Task

Parameters

codeElementContext
CodeElementContext

Dynamic code element context at the point of invocation.

clientContext
IClientContext

Client context captured at the point of invocation.

cancelToken
CancellationToken

Cancellation token to observe.

Returns

A Task completed when CodeLens invocation is completed.

Applies to