# codegen: do not edit
defmodule GenLSP.Structures.TextDocumentClientCapabilities do
  @moduledoc """
  Text document specific client capabilities.
  """

  import Schematic, warn: false

  use TypedStruct

  @doc """
  ## Fields

  * synchronization: Defines which synchronization capabilities the client supports.
  * completion: Capabilities specific to the `textDocument/completion` request.
  * hover: Capabilities specific to the `textDocument/hover` request.
  * signature_help: Capabilities specific to the `textDocument/signatureHelp` request.
  * declaration: Capabilities specific to the `textDocument/declaration` request.
    
    @since 3.14.0
  * definition: Capabilities specific to the `textDocument/definition` request.
  * type_definition: Capabilities specific to the `textDocument/typeDefinition` request.
    
    @since 3.6.0
  * implementation: Capabilities specific to the `textDocument/implementation` request.
    
    @since 3.6.0
  * references: Capabilities specific to the `textDocument/references` request.
  * document_highlight: Capabilities specific to the `textDocument/documentHighlight` request.
  * document_symbol: Capabilities specific to the `textDocument/documentSymbol` request.
  * code_action: Capabilities specific to the `textDocument/codeAction` request.
  * code_lens: Capabilities specific to the `textDocument/codeLens` request.
  * document_link: Capabilities specific to the `textDocument/documentLink` request.
  * color_provider: Capabilities specific to the `textDocument/documentColor` and the
    `textDocument/colorPresentation` request.
    
    @since 3.6.0
  * formatting: Capabilities specific to the `textDocument/formatting` request.
  * range_formatting: Capabilities specific to the `textDocument/rangeFormatting` request.
  * on_type_formatting: Capabilities specific to the `textDocument/onTypeFormatting` request.
  * rename: Capabilities specific to the `textDocument/rename` request.
  * folding_range: Capabilities specific to the `textDocument/foldingRange` request.
    
    @since 3.10.0
  * selection_range: Capabilities specific to the `textDocument/selectionRange` request.
    
    @since 3.15.0
  * publish_diagnostics: Capabilities specific to the `textDocument/publishDiagnostics` notification.
  * call_hierarchy: Capabilities specific to the various call hierarchy requests.
    
    @since 3.16.0
  * semantic_tokens: Capabilities specific to the various semantic token request.
    
    @since 3.16.0
  * linked_editing_range: Capabilities specific to the `textDocument/linkedEditingRange` request.
    
    @since 3.16.0
  * moniker: Client capabilities specific to the `textDocument/moniker` request.
    
    @since 3.16.0
  * type_hierarchy: Capabilities specific to the various type hierarchy requests.
    
    @since 3.17.0
  * inline_value: Capabilities specific to the `textDocument/inlineValue` request.
    
    @since 3.17.0
  * inlay_hint: Capabilities specific to the `textDocument/inlayHint` request.
    
    @since 3.17.0
  * diagnostic: Capabilities specific to the diagnostic pull model.
    
    @since 3.17.0
  """
  @derive Jason.Encoder
  typedstruct do
    field :synchronization, GenLSP.Structures.TextDocumentSyncClientCapabilities.t()
    field :completion, GenLSP.Structures.CompletionClientCapabilities.t()
    field :hover, GenLSP.Structures.HoverClientCapabilities.t()
    field :signature_help, GenLSP.Structures.SignatureHelpClientCapabilities.t()
    field :declaration, GenLSP.Structures.DeclarationClientCapabilities.t()
    field :definition, GenLSP.Structures.DefinitionClientCapabilities.t()
    field :type_definition, GenLSP.Structures.TypeDefinitionClientCapabilities.t()
    field :implementation, GenLSP.Structures.ImplementationClientCapabilities.t()
    field :references, GenLSP.Structures.ReferenceClientCapabilities.t()
    field :document_highlight, GenLSP.Structures.DocumentHighlightClientCapabilities.t()
    field :document_symbol, GenLSP.Structures.DocumentSymbolClientCapabilities.t()
    field :code_action, GenLSP.Structures.CodeActionClientCapabilities.t()
    field :code_lens, GenLSP.Structures.CodeLensClientCapabilities.t()
    field :document_link, GenLSP.Structures.DocumentLinkClientCapabilities.t()
    field :color_provider, GenLSP.Structures.DocumentColorClientCapabilities.t()
    field :formatting, GenLSP.Structures.DocumentFormattingClientCapabilities.t()
    field :range_formatting, GenLSP.Structures.DocumentRangeFormattingClientCapabilities.t()
    field :on_type_formatting, GenLSP.Structures.DocumentOnTypeFormattingClientCapabilities.t()
    field :rename, GenLSP.Structures.RenameClientCapabilities.t()
    field :folding_range, GenLSP.Structures.FoldingRangeClientCapabilities.t()
    field :selection_range, GenLSP.Structures.SelectionRangeClientCapabilities.t()
    field :publish_diagnostics, GenLSP.Structures.PublishDiagnosticsClientCapabilities.t()
    field :call_hierarchy, GenLSP.Structures.CallHierarchyClientCapabilities.t()
    field :semantic_tokens, GenLSP.Structures.SemanticTokensClientCapabilities.t()
    field :linked_editing_range, GenLSP.Structures.LinkedEditingRangeClientCapabilities.t()
    field :moniker, GenLSP.Structures.MonikerClientCapabilities.t()
    field :type_hierarchy, GenLSP.Structures.TypeHierarchyClientCapabilities.t()
    field :inline_value, GenLSP.Structures.InlineValueClientCapabilities.t()
    field :inlay_hint, GenLSP.Structures.InlayHintClientCapabilities.t()
    field :diagnostic, GenLSP.Structures.DiagnosticClientCapabilities.t()
  end

  @doc false
  @spec schema() :: Schematic.t()
  def schema() do
    schema(__MODULE__, %{
      optional({"synchronization", :synchronization}) =>
        GenLSP.Structures.TextDocumentSyncClientCapabilities.schema(),
      optional({"completion", :completion}) =>
        GenLSP.Structures.CompletionClientCapabilities.schema(),
      optional({"hover", :hover}) => GenLSP.Structures.HoverClientCapabilities.schema(),
      optional({"signatureHelp", :signature_help}) =>
        GenLSP.Structures.SignatureHelpClientCapabilities.schema(),
      optional({"declaration", :declaration}) =>
        GenLSP.Structures.DeclarationClientCapabilities.schema(),
      optional({"definition", :definition}) =>
        GenLSP.Structures.DefinitionClientCapabilities.schema(),
      optional({"typeDefinition", :type_definition}) =>
        GenLSP.Structures.TypeDefinitionClientCapabilities.schema(),
      optional({"implementation", :implementation}) =>
        GenLSP.Structures.ImplementationClientCapabilities.schema(),
      optional({"references", :references}) =>
        GenLSP.Structures.ReferenceClientCapabilities.schema(),
      optional({"documentHighlight", :document_highlight}) =>
        GenLSP.Structures.DocumentHighlightClientCapabilities.schema(),
      optional({"documentSymbol", :document_symbol}) =>
        GenLSP.Structures.DocumentSymbolClientCapabilities.schema(),
      optional({"codeAction", :code_action}) =>
        GenLSP.Structures.CodeActionClientCapabilities.schema(),
      optional({"codeLens", :code_lens}) => GenLSP.Structures.CodeLensClientCapabilities.schema(),
      optional({"documentLink", :document_link}) =>
        GenLSP.Structures.DocumentLinkClientCapabilities.schema(),
      optional({"colorProvider", :color_provider}) =>
        GenLSP.Structures.DocumentColorClientCapabilities.schema(),
      optional({"formatting", :formatting}) =>
        GenLSP.Structures.DocumentFormattingClientCapabilities.schema(),
      optional({"rangeFormatting", :range_formatting}) =>
        GenLSP.Structures.DocumentRangeFormattingClientCapabilities.schema(),
      optional({"onTypeFormatting", :on_type_formatting}) =>
        GenLSP.Structures.DocumentOnTypeFormattingClientCapabilities.schema(),
      optional({"rename", :rename}) => GenLSP.Structures.RenameClientCapabilities.schema(),
      optional({"foldingRange", :folding_range}) =>
        GenLSP.Structures.FoldingRangeClientCapabilities.schema(),
      optional({"selectionRange", :selection_range}) =>
        GenLSP.Structures.SelectionRangeClientCapabilities.schema(),
      optional({"publishDiagnostics", :publish_diagnostics}) =>
        GenLSP.Structures.PublishDiagnosticsClientCapabilities.schema(),
      optional({"callHierarchy", :call_hierarchy}) =>
        GenLSP.Structures.CallHierarchyClientCapabilities.schema(),
      optional({"semanticTokens", :semantic_tokens}) =>
        GenLSP.Structures.SemanticTokensClientCapabilities.schema(),
      optional({"linkedEditingRange", :linked_editing_range}) =>
        GenLSP.Structures.LinkedEditingRangeClientCapabilities.schema(),
      optional({"moniker", :moniker}) => GenLSP.Structures.MonikerClientCapabilities.schema(),
      optional({"typeHierarchy", :type_hierarchy}) =>
        GenLSP.Structures.TypeHierarchyClientCapabilities.schema(),
      optional({"inlineValue", :inline_value}) =>
        GenLSP.Structures.InlineValueClientCapabilities.schema(),
      optional({"inlayHint", :inlay_hint}) =>
        GenLSP.Structures.InlayHintClientCapabilities.schema(),
      optional({"diagnostic", :diagnostic}) =>
        GenLSP.Structures.DiagnosticClientCapabilities.schema()
    })
  end
end
