View Source GenLSP.Structures.ColorPresentation (gen_lsp v0.10.0)

Link to this section Summary

Functions

Fields

  • label: The label of this color presentation. It will be shown on the color picker header. By default this is also the text that is inserted when selecting this color presentation.
  • text_edit: An {@link TextEdit edit} which is applied to a document when selecting this presentation for the color. When falsy the {@link ColorPresentation.label label} is used.
  • additional_text_edits: An optional array of additional {@link TextEdit text edits} that are applied when selecting this color presentation. Edits must not overlap with the main {@link ColorPresentation.textEdit edit} nor with themselves.

Link to this section Types

@type t() :: %GenLSP.Structures.ColorPresentation{
  additional_text_edits: [GenLSP.Structures.TextEdit.t()] | nil,
  label: String.t(),
  text_edit: GenLSP.Structures.TextEdit.t() | nil
}

Link to this section Functions

Link to this function

%GenLSP.Structures.ColorPresentation{}

View Source (struct)

fields

Fields

  • label: The label of this color presentation. It will be shown on the color picker header. By default this is also the text that is inserted when selecting this color presentation.
  • text_edit: An {@link TextEdit edit} which is applied to a document when selecting this presentation for the color. When falsy the {@link ColorPresentation.label label} is used.
  • additional_text_edits: An optional array of additional {@link TextEdit text edits} that are applied when selecting this color presentation. Edits must not overlap with the main {@link ColorPresentation.textEdit edit} nor with themselves.