Table of Contents

Class InlayHint

Namespace
NMF.AnyText.InlayClasses
Assembly
NMF.AnyText.Lsp.dll

Denotes an inlay hint

[DataContract]
public class InlayHint
Inheritance
InlayHint
Inherited Members

Properties

Data

A data entry field that is preserved on an inlay hint between a textDocument/inlayHint and a inlayHint/resolve request.

public object Data { get; set; }

Property Value

object

Kind

The kind of this hint. Can be omitted, in which case the client should fall back to a reasonable default.

public InlayHintKind? Kind { get; set; }

Property Value

InlayHintKind?

Label

The label of this hint. A human readable string or an array of InlayHintLabelPart label parts.

Note that neither the string nor the label part can be empty.

[DataMember(Name = "label")]
[JsonProperty(Required = Required.Always)]
public SumType<string, InlayHintLabelPart> Label { get; init; }

Property Value

SumType<string, InlayHintLabelPart>

PaddingLeft

Render padding before the hint.

public bool? PaddingLeft { get; set; }

Property Value

bool?

PaddingRight

Render padding after the hint.

public bool? PaddingRight { get; set; }

Property Value

bool?

Position

The position of this hint.

[DataMember(Name = "position")]
[JsonProperty(Required = Required.Always)]
public Position Position { get; init; }

Property Value

Position

TextEdits

Optional text edits that are performed when accepting this inlay hint.

public TextEdit[] TextEdits { get; set; }

Property Value

TextEdit[]

Tooltip

The tooltip text when you hover over this item.

public SumType<string, MarkupContent>? Tooltip { get; set; }

Property Value

SumType<string, MarkupContent>?