CodeLens.GetLabelAsync(CodeElementContext, CancellationToken) Method

Definition

Gets CodeLens label for the CodeLens instance given the context information.

C#
public abstract System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Editor.CodeLensLabel> GetLabelAsync(Microsoft.VisualStudio.Extensibility.Editor.CodeElementContext codeElementContext, System.Threading.CancellationToken token);

Parameters

codeElementContext
CodeElementContext

Dynamic code element context at the point of invocation.

token
CancellationToken

Cancellation token to observe.

Returns

CodeLens label information.

Applies to

Product Versions
Visual Studio SDK 2022