CodeLens.GetLabelAsync(CodeElementContext, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets CodeLens label for the CodeLens instance given the context information.
public abstract System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Editor.CodeLensLabel> GetLabelAsync (Microsoft.VisualStudio.Extensibility.Editor.CodeElementContext codeElementContext, System.Threading.CancellationToken token);
abstract member GetLabelAsync : Microsoft.VisualStudio.Extensibility.Editor.CodeElementContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Editor.CodeLensLabel>
Public MustOverride Function GetLabelAsync (codeElementContext As CodeElementContext, token As CancellationToken) As Task(Of CodeLensLabel)
Parameters
- codeElementContext
- CodeElementContext
Dynamic code element context at the point of invocation.
- token
- CancellationToken
Cancellation token to observe.
Returns
CodeLens label information.