Struct lsp_types::CompletionOptions
source · [−]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,
}
Expand description
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
sourceimpl Clone for CompletionOptions
impl Clone for CompletionOptions
sourcefn clone(&self) -> CompletionOptions
fn clone(&self) -> CompletionOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CompletionOptions
impl Debug for CompletionOptions
sourceimpl Default for CompletionOptions
impl Default for CompletionOptions
sourcefn default() -> CompletionOptions
fn default() -> CompletionOptions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CompletionOptions
impl<'de> Deserialize<'de> for CompletionOptions
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<CompletionOptions> for CompletionOptions
impl PartialEq<CompletionOptions> for CompletionOptions
sourcefn eq(&self, other: &CompletionOptions) -> bool
fn eq(&self, other: &CompletionOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CompletionOptions) -> bool
fn ne(&self, other: &CompletionOptions) -> bool
This method tests for !=
.
sourceimpl Serialize for CompletionOptions
impl Serialize for CompletionOptions
impl Eq for CompletionOptions
impl StructuralEq for CompletionOptions
impl StructuralPartialEq for CompletionOptions
Auto Trait Implementations
impl RefUnwindSafe for CompletionOptions
impl Send for CompletionOptions
impl Sync for CompletionOptions
impl Unpin for CompletionOptions
impl UnwindSafe for CompletionOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more