pub struct CompletionRegistrationOptions {
pub document_selector: Option<DocumentSelector>,
pub trigger_characters: Option<Vec<String>>,
pub all_commit_characters: Option<Vec<String>>,
pub resolve_provider: Option<bool>,
pub completion_item: Option<ServerCompletionItemOptions>,
}Expand description
Registration options for a {@link CompletionRequest}.
Fields§
§document_selector: Option<DocumentSelector>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: Option<Vec<String>>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 c in a JavaScript file
code complete will automatically pop up present console besides 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 in triggerCharacters.
all_commit_characters: Option<Vec<String>>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.commitCharactersSupport
If a server provides both allCommitCharacters and commit characters on an individual
completion item the ones on the completion item win.
@since 3.2.0
resolve_provider: Option<bool>The server provides support to resolve additional information for a completion item.
completion_item: Option<ServerCompletionItemOptions>The server supports the following CompletionItem specific
capabilities.
@since 3.17.0
Trait Implementations§
Source§impl Clone for CompletionRegistrationOptions
impl Clone for CompletionRegistrationOptions
Source§fn clone(&self) -> CompletionRegistrationOptions
fn clone(&self) -> CompletionRegistrationOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for CompletionRegistrationOptions
impl Default for CompletionRegistrationOptions
Source§fn default() -> CompletionRegistrationOptions
fn default() -> CompletionRegistrationOptions
Source§impl<'de> Deserialize<'de> for CompletionRegistrationOptions
impl<'de> Deserialize<'de> for CompletionRegistrationOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CompletionRegistrationOptions
impl PartialEq for CompletionRegistrationOptions
Source§fn eq(&self, other: &CompletionRegistrationOptions) -> bool
fn eq(&self, other: &CompletionRegistrationOptions) -> bool
self and other values to be equal, and is used by ==.