# codegen: do not edit
defmodule GenLSP.Structures.ExecuteCommandRegistrationOptions do
  @moduledoc """
  Registration options for a {@link ExecuteCommandRequest}.
  """

  import Schematic, warn: false

  use TypedStruct

  @doc """
  ## Fields

  * commands: The commands to be executed on the server
  * work_done_progress
  """
  @derive Jason.Encoder
  typedstruct do
    field :commands, list(String.t()), enforce: true
    field :work_done_progress, boolean()
  end

  @doc false
  @spec schema() :: Schematic.t()
  def schema() do
    schema(__MODULE__, %{
      {"commands", :commands} => list(str()),
      optional({"workDoneProgress", :work_done_progress}) => bool()
    })
  end
end
