lib/gen_lsp/protocol/structures/inline_value_workspace_client_capabilities.ex

# codegen: do not edit
defmodule GenLSP.Structures.InlineValueWorkspaceClientCapabilities do
  @moduledoc """
  Client workspace capabilities specific to inline values.

  @since 3.17.0
  """

  import Schematic, warn: false

  use TypedStruct

  @doc """
  ## Fields

  * refresh_support: Whether the client implementation supports a refresh request sent from the
    server to the client.

    Note that this event is global and will force the client to refresh all
    inline values currently shown. It should be used with absolute care and is
    useful for situation where a server for example detects a project wide
    change that requires such a calculation.
  """
  @derive Jason.Encoder
  typedstruct do
    field :refresh_support, boolean()
  end

  @doc false
  @spec schematic() :: Schematic.t()
  def schematic() do
    schema(__MODULE__, %{
      optional({"refreshSupport", :refresh_support}) => bool()
    })
  end
end