Struct lsp2::CompletionOptions
pub struct CompletionOptions {
pub resolve_provider: Option<bool>,
pub trigger_characters: Option<Vec<String, Global>>,
pub all_commit_characters: Option<Vec<String, Global>>,
pub work_done_progress_options: WorkDoneProgressOptions,
pub completion_item: Option<CompletionOptionsCompletionItem>,
}
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, Global>>
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, Global>>
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
§completion_item: Option<CompletionOptionsCompletionItem>
The server supports the following CompletionItem
specific
capabilities.
@since 3.17.0
Trait Implementations§
§impl Clone for CompletionOptions
impl Clone for CompletionOptions
§fn clone(&self) -> CompletionOptions
fn clone(&self) -> CompletionOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for CompletionOptions
impl Debug for CompletionOptions
§impl Default for CompletionOptions
impl Default for CompletionOptions
§fn default() -> CompletionOptions
fn default() -> CompletionOptions
§impl<'de> Deserialize<'de> for CompletionOptions
impl<'de> Deserialize<'de> for CompletionOptions
§fn deserialize<__D>(
__deserializer: __D
) -> Result<CompletionOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CompletionOptions, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
§impl PartialEq<CompletionOptions> for CompletionOptions
impl PartialEq<CompletionOptions> for CompletionOptions
§fn eq(&self, other: &CompletionOptions) -> bool
fn eq(&self, other: &CompletionOptions) -> bool
self
and other
values to be equal, and is used
by ==
.§impl Serialize for CompletionOptions
impl Serialize for CompletionOptions
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.