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

Registration options for a {@link DocumentOnTypeFormattingRequest}.

Link to this section Summary

Functions

Fields

  • document_selector: A document selector to identify the scope of the registration. If set to null the document selector provided on the client side will be used.
  • first_trigger_character: A character on which formatting should be triggered, like {.
  • more_trigger_character: More trigger characters.

Link to this section Types

@type t() :: %GenLSP.Structures.DocumentOnTypeFormattingRegistrationOptions{
  document_selector: GenLSP.TypeAlias.DocumentSelector.t() | nil,
  first_trigger_character: String.t(),
  more_trigger_character: [String.t()] | nil
}

Link to this section Functions

Link to this function

%GenLSP.Structures.DocumentOnTypeFormattingRegistrationOptions{}

View Source (struct)

fields

Fields

  • document_selector: A document selector to identify the scope of the registration. If set to null the document selector provided on the client side will be used.
  • first_trigger_character: A character on which formatting should be triggered, like {.
  • more_trigger_character: More trigger characters.