Class CodeLensInfo
Represents a CodeLens item used for a Language Server Protocol (LSP) server. CodeLens provides information or actions associated with specific locations in a text document.
public abstract class CodeLensInfo : ActionInfo
- Inheritance
-
CodeLensInfo
- Derived
- Inherited Members
Properties
Arguments
Gets or sets the dictionary of arguments to be passed along with the command when invoked.
public Dictionary<string, object> Arguments { get; init; }
Property Value
CommandIdentifier
Gets or sets the identifier for the command to be executed when the CodeLens is activated.
public string CommandIdentifier { get; init; }
Property Value
Data
Gets or sets additional data associated with this CodeLens, which can be used for custom functionality.
public object Data { get; init; }
Property Value
Title
Gets or sets the title of the CodeLens item, typically a label displayed in the editor.
public string Title { get; init; }
Property Value
Methods
GetTitleForRuleApplication(RuleApplication, ParseContext)
Calculates the title of the code lens for the given rule application
public virtual string GetTitleForRuleApplication(RuleApplication ruleApplication, ParseContext context)
Parameters
ruleApplication
RuleApplicationThe rule application for which the title is being determined.
context
ParseContextThe parsing context used for evaluation.
Returns
- string
The title of the code lens