Struct lsp2::CompletionItemCapability
pub struct CompletionItemCapability {
pub snippet_support: Option<bool>,
pub commit_characters_support: Option<bool>,
pub documentation_format: Option<Vec<MarkupKind, Global>>,
pub deprecated_support: Option<bool>,
pub preselect_support: Option<bool>,
pub tag_support: Option<TagSupport<CompletionItemTag>>,
pub insert_replace_support: Option<bool>,
pub resolve_support: Option<CompletionItemCapabilityResolveSupport>,
pub insert_text_mode_support: Option<InsertTextModeSupport>,
pub label_details_support: Option<bool>,
}
Fields§
§snippet_support: Option<bool>
Client supports snippets as insert text.
A snippet can define tab stops and placeholders with $1
, $2
and ${3:foo}
. $0
defines the final tab stop, it defaults to
the end of the snippet. Placeholders with equal identifiers are linked,
that is typing in one will update others too.
commit_characters_support: Option<bool>
Client supports commit characters on a completion item.
documentation_format: Option<Vec<MarkupKind, Global>>
Client supports the follow content formats for the documentation property. The order describes the preferred format of the client.
deprecated_support: Option<bool>
Client supports the deprecated property on a completion item.
preselect_support: Option<bool>
Client supports the preselect property on a completion item.
tag_support: Option<TagSupport<CompletionItemTag>>
Client supports the tag property on a completion item. Clients supporting tags have to handle unknown tags gracefully. Clients especially need to preserve unknown tags when sending a completion item back to the server in a resolve call.
insert_replace_support: Option<bool>
Client support insert replace edit to control different behavior if a completion item is inserted in the text or should replace text.
@since 3.16.0
resolve_support: Option<CompletionItemCapabilityResolveSupport>
Indicates which properties a client can resolve lazily on a completion
item. Before version 3.16.0 only the predefined properties documentation
and details
could be resolved lazily.
@since 3.16.0
insert_text_mode_support: Option<InsertTextModeSupport>
The client supports the insertTextMode
property on
a completion item to override the whitespace handling mode
as defined by the client.
@since 3.16.0
label_details_support: Option<bool>
The client has support for completion item label
details (see also CompletionItemLabelDetails
).
@since 3.17.0
Trait Implementations§
§impl Clone for CompletionItemCapability
impl Clone for CompletionItemCapability
§fn clone(&self) -> CompletionItemCapability
fn clone(&self) -> CompletionItemCapability
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for CompletionItemCapability
impl Debug for CompletionItemCapability
§impl Default for CompletionItemCapability
impl Default for CompletionItemCapability
§fn default() -> CompletionItemCapability
fn default() -> CompletionItemCapability
§impl<'de> Deserialize<'de> for CompletionItemCapability
impl<'de> Deserialize<'de> for CompletionItemCapability
§fn deserialize<__D>(
__deserializer: __D
) -> Result<CompletionItemCapability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CompletionItemCapability, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
§impl PartialEq<CompletionItemCapability> for CompletionItemCapability
impl PartialEq<CompletionItemCapability> for CompletionItemCapability
§fn eq(&self, other: &CompletionItemCapability) -> bool
fn eq(&self, other: &CompletionItemCapability) -> bool
self
and other
values to be equal, and is used
by ==
.§impl Serialize for CompletionItemCapability
impl Serialize for CompletionItemCapability
§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 CompletionItemCapability
impl StructuralEq for CompletionItemCapability
impl StructuralPartialEq for CompletionItemCapability
Auto Trait Implementations§
impl RefUnwindSafe for CompletionItemCapability
impl Send for CompletionItemCapability
impl Sync for CompletionItemCapability
impl Unpin for CompletionItemCapability
impl UnwindSafe for CompletionItemCapability
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.