View Source GenLSP.Structures.CompletionRegistrationOptions (gen_lsp v0.11.2)
Registration options for a {@link CompletionRequest}.
Link to this section Summary
Functions
Fields
document_selector: A document selector to identify the scope of the registration. If set to null the document selector provided on the client side will be used.
Link to this section Types
@type t() :: %GenLSP.Structures.CompletionRegistrationOptions{ all_commit_characters: [String.t()] | nil, completion_item: map() | nil, document_selector: GenLSP.TypeAlias.DocumentSelector.t() | nil, resolve_provider: boolean() | nil, trigger_characters: [String.t()] | nil, work_done_progress: boolean() | nil }
Link to this section Functions
fields
Fields
document_selector: A document selector to identify the scope of the registration. If set to null the document selector provided on the client side will be used.
trigger_characters: Most tools trigger completion request automatically without explicitly requesting it using a keyboard shortcut (e.g. Ctrl+Space). Typically they do so when the user starts to type an identifier. For example if the user types
cin a JavaScript file code complete will automatically pop up presentconsolebesides others as a completion item. Characters that make up identifiers don't need to be listed here.If code complete should automatically be trigger on characters not being valid inside an identifier (for example
.in JavaScript) list them intriggerCharacters.all_commit_characters: The list of all possible characters that commit a completion. This field can be used if clients don't support individual commit characters per completion item. See
ClientCapabilities.textDocument.completion.completionItem.commitCharactersSupportIf a server provides both
allCommitCharactersand commit characters on an individual completion item the ones on the completion item win.@since 3.2.0
resolve_provider: The server provides support to resolve additional information for a completion item.
completion_item: The server supports the following
CompletionItemspecific capabilities.@since 3.17.0
work_done_progress