View Source GenLSP.Structures.Command (gen_lsp v0.7.3)

Represents a reference to a command. Provides a title which will be used to represent a command in the UI and, optionally, an array of arguments which will be passed to the command handler function when invoked.

Link to this section Summary

Functions

Fields

  • title: Title of the command, like save.
  • command: The identifier of the actual command handler.
  • arguments: Arguments that the command handler should be invoked with.

Link to this section Types

@type t() :: %GenLSP.Structures.Command{
  arguments: [GenLSP.TypeAlias.LSPAny.t()] | nil,
  command: String.t(),
  title: String.t()
}

Link to this section Functions

Link to this function

%GenLSP.Structures.Command{}

View Source (struct)

fields

Fields

  • title: Title of the command, like save.
  • command: The identifier of the actual command handler.
  • arguments: Arguments that the command handler should be invoked with.