# codegen: do not edit
defmodule GenLSP.Structures.SignatureHelpOptions do
  @moduledoc """
  Server Capabilities for a {@link SignatureHelpRequest}.
  """

  import SchematicV, warn: false

  use TypedStruct

  @doc """
  ## Fields

  * trigger_characters: List of characters that trigger signature help automatically.
  * retrigger_characters: List of characters that re-trigger signature help.

    These trigger characters are only active when signature help is already showing. All trigger characters
    are also counted as re-trigger characters.

    @since 3.15.0
  * work_done_progress
  """

  typedstruct do
    field(:trigger_characters, list(String.t()))
    field(:retrigger_characters, list(String.t()))
    field(:work_done_progress, boolean())
  end

  @doc false
  @spec schematic() :: SchematicV.t()
  def schematic() do
    schema(__MODULE__, %{
      optional({"triggerCharacters", :trigger_characters}) => list(str()),
      optional({"retriggerCharacters", :retrigger_characters}) => list(str()),
      optional({"workDoneProgress", :work_done_progress}) => bool()
    })
  end
end
