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).

public readonly struct CodeElementContext
type CodeElementContext = struct
Public Structure CodeElementContext
Inheritance
CodeElementContext

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