Struct lsp_types::CompletionOptions[][src]

pub struct CompletionOptions {
    pub resolve_provider: Option<bool>,
    pub trigger_characters: Option<Vec<String>>,
    pub all_commit_characters: Option<Vec<String>>,
    pub work_done_progress_options: WorkDoneProgressOptions,
}

Completion options.

Fields

resolve_provider: Option<bool>

The server provides support to resolve additional information for a completion item.

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 client capability 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

work_done_progress_options: WorkDoneProgressOptions

Trait Implementations

impl Clone for CompletionOptions[src]

impl Debug for CompletionOptions[src]

impl Default for CompletionOptions[src]

impl<'de> Deserialize<'de> for CompletionOptions[src]

impl Eq for CompletionOptions[src]

impl PartialEq<CompletionOptions> for CompletionOptions[src]

impl Serialize for CompletionOptions[src]

impl StructuralEq for CompletionOptions[src]

impl StructuralPartialEq for CompletionOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.