Table of Contents

Class CodeLensInfo

Namespace
NMF.AnyText
Assembly
NMF.AnyText.Core.dll

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

Dictionary<string, object>

CommandIdentifier

Gets or sets the identifier for the command to be executed when the CodeLens is activated.

public string CommandIdentifier { get; init; }

Property Value

string

Data

Gets or sets additional data associated with this CodeLens, which can be used for custom functionality.

public object Data { get; init; }

Property Value

object

Title

Gets or sets the title of the CodeLens item, typically a label displayed in the editor.

public string Title { get; init; }

Property Value

string

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 RuleApplication

The rule application for which the title is being determined.

context ParseContext

The parsing context used for evaluation.

Returns

string

The title of the code lens