View Source GenLSP.Structures.ServerCapabilities (gen_lsp v0.10.0)

Defines the capabilities provided by a language server.

Link to this section Summary

Functions

Fields

  • position_encoding: The position encoding the server picked from the encodings offered by the client via the client capability general.positionEncodings.

Link to this section Types

@type t() :: %GenLSP.Structures.ServerCapabilities{
  call_hierarchy_provider:
    (boolean()
     | GenLSP.Structures.CallHierarchyOptions.t()
     | GenLSP.Structures.CallHierarchyRegistrationOptions.t())
    | nil,
  code_action_provider:
    (boolean() | GenLSP.Structures.CodeActionOptions.t()) | nil,
  code_lens_provider: GenLSP.Structures.CodeLensOptions.t() | nil,
  color_provider:
    (boolean()
     | GenLSP.Structures.DocumentColorOptions.t()
     | GenLSP.Structures.DocumentColorRegistrationOptions.t())
    | nil,
  completion_provider: GenLSP.Structures.CompletionOptions.t() | nil,
  declaration_provider:
    (boolean()
     | GenLSP.Structures.DeclarationOptions.t()
     | GenLSP.Structures.DeclarationRegistrationOptions.t())
    | nil,
  definition_provider:
    (boolean() | GenLSP.Structures.DefinitionOptions.t()) | nil,
  diagnostic_provider:
    (GenLSP.Structures.DiagnosticOptions.t()
     | GenLSP.Structures.DiagnosticRegistrationOptions.t())
    | nil,
  document_formatting_provider:
    (boolean() | GenLSP.Structures.DocumentFormattingOptions.t()) | nil,
  document_highlight_provider:
    (boolean() | GenLSP.Structures.DocumentHighlightOptions.t()) | nil,
  document_link_provider: GenLSP.Structures.DocumentLinkOptions.t() | nil,
  document_on_type_formatting_provider:
    GenLSP.Structures.DocumentOnTypeFormattingOptions.t() | nil,
  document_range_formatting_provider:
    (boolean() | GenLSP.Structures.DocumentRangeFormattingOptions.t()) | nil,
  document_symbol_provider:
    (boolean() | GenLSP.Structures.DocumentSymbolOptions.t()) | nil,
  execute_command_provider: GenLSP.Structures.ExecuteCommandOptions.t() | nil,
  experimental: GenLSP.TypeAlias.LSPAny.t() | nil,
  folding_range_provider:
    (boolean()
     | GenLSP.Structures.FoldingRangeOptions.t()
     | GenLSP.Structures.FoldingRangeRegistrationOptions.t())
    | nil,
  hover_provider: (boolean() | GenLSP.Structures.HoverOptions.t()) | nil,
  implementation_provider:
    (boolean()
     | GenLSP.Structures.ImplementationOptions.t()
     | GenLSP.Structures.ImplementationRegistrationOptions.t())
    | nil,
  inlay_hint_provider:
    (boolean()
     | GenLSP.Structures.InlayHintOptions.t()
     | GenLSP.Structures.InlayHintRegistrationOptions.t())
    | nil,
  inline_value_provider:
    (boolean()
     | GenLSP.Structures.InlineValueOptions.t()
     | GenLSP.Structures.InlineValueRegistrationOptions.t())
    | nil,
  linked_editing_range_provider:
    (boolean()
     | GenLSP.Structures.LinkedEditingRangeOptions.t()
     | GenLSP.Structures.LinkedEditingRangeRegistrationOptions.t())
    | nil,
  moniker_provider:
    (boolean()
     | GenLSP.Structures.MonikerOptions.t()
     | GenLSP.Structures.MonikerRegistrationOptions.t())
    | nil,
  notebook_document_sync:
    (GenLSP.Structures.NotebookDocumentSyncOptions.t()
     | GenLSP.Structures.NotebookDocumentSyncRegistrationOptions.t())
    | nil,
  position_encoding: GenLSP.Enumerations.PositionEncodingKind.t() | nil,
  references_provider:
    (boolean() | GenLSP.Structures.ReferenceOptions.t()) | nil,
  rename_provider: (boolean() | GenLSP.Structures.RenameOptions.t()) | nil,
  selection_range_provider:
    (boolean()
     | GenLSP.Structures.SelectionRangeOptions.t()
     | GenLSP.Structures.SelectionRangeRegistrationOptions.t())
    | nil,
  semantic_tokens_provider:
    (GenLSP.Structures.SemanticTokensOptions.t()
     | GenLSP.Structures.SemanticTokensRegistrationOptions.t())
    | nil,
  signature_help_provider: GenLSP.Structures.SignatureHelpOptions.t() | nil,
  text_document_sync:
    (GenLSP.Structures.TextDocumentSyncOptions.t()
     | GenLSP.Enumerations.TextDocumentSyncKind.t())
    | nil,
  type_definition_provider:
    (boolean()
     | GenLSP.Structures.TypeDefinitionOptions.t()
     | GenLSP.Structures.TypeDefinitionRegistrationOptions.t())
    | nil,
  type_hierarchy_provider:
    (boolean()
     | GenLSP.Structures.TypeHierarchyOptions.t()
     | GenLSP.Structures.TypeHierarchyRegistrationOptions.t())
    | nil,
  workspace: map() | nil,
  workspace_symbol_provider:
    (boolean() | GenLSP.Structures.WorkspaceSymbolOptions.t()) | nil
}

Link to this section Functions

Link to this function

%GenLSP.Structures.ServerCapabilities{}

View Source (struct)

fields

Fields

  • position_encoding: The position encoding the server picked from the encodings offered by the client via the client capability general.positionEncodings.

    If the client didn't provide any position encodings the only valid value that a server can return is 'utf-16'.

    If omitted it defaults to 'utf-16'.

    @since 3.17.0

  • text_document_sync: Defines how text documents are synced. Is either a detailed structure defining each notification or for backwards compatibility the TextDocumentSyncKind number.

  • notebook_document_sync: Defines how notebook documents are synced.

    @since 3.17.0

  • completion_provider: The server provides completion support.

  • hover_provider: The server provides hover support.

  • signature_help_provider: The server provides signature help support.

  • declaration_provider: The server provides Goto Declaration support.

  • definition_provider: The server provides goto definition support.

  • type_definition_provider: The server provides Goto Type Definition support.

  • implementation_provider: The server provides Goto Implementation support.

  • references_provider: The server provides find references support.

  • document_highlight_provider: The server provides document highlight support.

  • document_symbol_provider: The server provides document symbol support.

  • code_action_provider: The server provides code actions. CodeActionOptions may only be specified if the client states that it supports codeActionLiteralSupport in its initial initialize request.

  • code_lens_provider: The server provides code lens.

  • document_link_provider: The server provides document link support.

  • color_provider: The server provides color provider support.

  • workspace_symbol_provider: The server provides workspace symbol support.

  • document_formatting_provider: The server provides document formatting.

  • document_range_formatting_provider: The server provides document range formatting.

  • document_on_type_formatting_provider: The server provides document formatting on typing.

  • rename_provider: The server provides rename support. RenameOptions may only be specified if the client states that it supports prepareSupport in its initial initialize request.

  • folding_range_provider: The server provides folding provider support.

  • selection_range_provider: The server provides selection range support.

  • execute_command_provider: The server provides execute command support.

  • call_hierarchy_provider: The server provides call hierarchy support.

    @since 3.16.0

  • linked_editing_range_provider: The server provides linked editing range support.

    @since 3.16.0

  • semantic_tokens_provider: The server provides semantic tokens support.

    @since 3.16.0

  • moniker_provider: The server provides moniker support.

    @since 3.16.0

  • type_hierarchy_provider: The server provides type hierarchy support.

    @since 3.17.0

  • inline_value_provider: The server provides inline values.

    @since 3.17.0

  • inlay_hint_provider: The server provides inlay hints.

    @since 3.17.0

  • diagnostic_provider: The server has support for pull model diagnostics.

    @since 3.17.0

  • workspace: Workspace specific server capabilities.

  • experimental: Experimental server capabilities.