Freigeben über


ICodeLensProvider Interface

Definition

Extensibility point for providing Code Lenses.

[Microsoft.VisualStudio.Extensibility.ExtensionContract(typeof(Microsoft.VisualStudio.RpcContracts.Editor.ICodeLensProviderContract), typeof(Microsoft.VisualStudio.Extensibility.Editor.CodeLensProviderWrapper))]
[Microsoft.VisualStudio.Extensibility.ExtensionPart(typeof(Microsoft.VisualStudio.Extensibility.Editor.ICodeLensProvider), new System.String[] { "CodeLensProviderConfiguration", "TextViewExtensionConfiguration" })]
public interface ICodeLensProvider : Microsoft.VisualStudio.Extensibility.Editor.ITextViewExtension
[<Microsoft.VisualStudio.Extensibility.ExtensionContract(typeof(Microsoft.VisualStudio.RpcContracts.Editor.ICodeLensProviderContract), typeof(Microsoft.VisualStudio.Extensibility.Editor.CodeLensProviderWrapper))>]
[<Microsoft.VisualStudio.Extensibility.ExtensionPart(typeof(Microsoft.VisualStudio.Extensibility.Editor.ICodeLensProvider), new System.String[] { "CodeLensProviderConfiguration", "TextViewExtensionConfiguration" })>]
type ICodeLensProvider = interface
    interface ITextViewExtension
Public Interface ICodeLensProvider
Implements ITextViewExtension
Attributes
Implements

Remarks

Code Lens provider creates CodeLens instance from an CodeElement.

Properties

CodeLensProviderConfiguration

Gets the configuration for this ICodeLensProvider. The value of this property is evaluated at compile time when building the Visual Studio extension.

TextViewExtensionConfiguration

Gets the configuration for this ITextViewExtension. The value of this property is evaluated at compile time when building the Visual Studio extension.

(Inherited from ITextViewExtension)

Methods

TryCreateCodeLensAsync(CodeElement, CodeElementContext, CancellationToken)

Creates an CodeLens, on request, from a given code element.

Applies to