InlayHint

langoustine.lsp.structures.InlayHint
See theInlayHint companion object
case class InlayHint(position: Position, label: String | Vector[InlayHintLabelPart], kind: Opt[InlayHintKind], textEdits: Opt[Vector[TextEdit]], tooltip: Opt[String | MarkupContent], paddingLeft: Opt[Boolean], paddingRight: Opt[Boolean], data: Opt[Value])

Inlay hint information.

Value parameters

data

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

kind

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

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.

paddingLeft

Render padding before the hint. Note: Padding should use the editor's background color, not the background color of the hint itself. That means padding can be used to visually align/separate an inlay hint.

paddingRight

Render padding after the hint. Note: Padding should use the editor's background color, not the background color of the hint itself. That means padding can be used to visually align/separate an inlay hint.

position

The position of this hint. If multiple hints have the same position, they will be shown in the order they appear in the response.

textEdits

Optional text edits that are performed when accepting this inlay hint. Note that edits are expected to change the document so that the inlay hint (or its nearest variant) is now part of the document and the inlay hint itself is now obsolete.

tooltip

The tooltip text when you hover over this item.

Attributes

Since

3.17.0

Companion
object
Source
structures.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product