Share via


CodeElementContext Struct

Definition

Represents a context information for the code element (range in the document as well as additional properties passed in by CodeLens tagger).

[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct CodeElementContext
[<System.Runtime.CompilerServices.IsReadOnly>]
type CodeElementContext = struct
Public Structure CodeElementContext
Inheritance
CodeElementContext
Attributes

Remarks

Visual Studio CodeLens architecturally consists of two distinct components: a language specific tagger, whose responsibility is to tag code elements to be adorned with CodeLenses; and CodeLens data providers, whose responsibility is to populate CodeLens adornments with useful data (e.g number of references to a C# method).

Properties

Properties

Gets a property bag for any additional dynamic properties a CodeLens tagger might want to provide.

Range

Gets the range of the code element.

RpcContract

Gets a serializable representation of this thick object for use in an RPC call.

Applies to