View Source GenLSP.Structures.CodeLens (gen_lsp v0.8.1)

A code lens represents a {@link Command command} that should be shown along with source text, like the number of references, a way to run tests, etc.

A code lens is unresolved when no command is associated to it. For performance reasons the creation of a code lens and resolving should be done in two stages.

Link to this section Summary

Functions

Fields

  • range: The range in which this code lens is valid. Should only span a single line.
  • command: The command this code lens represents.
  • data: A data entry field that is preserved on a code lens item between a {@link CodeLensRequest} and a [CodeLensResolveRequest] (#CodeLensResolveRequest)

Link to this section Types

@type t() :: %GenLSP.Structures.CodeLens{
  command: GenLSP.Structures.Command.t() | nil,
  data: GenLSP.TypeAlias.LSPAny.t() | nil,
  range: GenLSP.Structures.Range.t()
}

Link to this section Functions

Link to this function

%GenLSP.Structures.CodeLens{}

View Source (struct)

fields

Fields

  • range: The range in which this code lens is valid. Should only span a single line.
  • command: The command this code lens represents.
  • data: A data entry field that is preserved on a code lens item between a {@link CodeLensRequest} and a [CodeLensResolveRequest] (#CodeLensResolveRequest)