pub struct LspCapabilities {
pub text_document_sync: bool,
pub hover_provider: bool,
pub definition_provider: bool,
pub references_provider: bool,
pub implementation_provider: bool,
pub type_definition_provider: bool,
pub document_symbol_provider: bool,
pub workspace_symbol_provider: bool,
pub rename_provider: bool,
pub completion_provider: Option<CompletionOptions>,
pub signature_help_provider: Option<SignatureHelpOptions>,
}Expand description
LSP 能力描述
Fields§
§text_document_sync: bool支持文本同步
hover_provider: bool支持悬停
definition_provider: bool支持定义跳转
references_provider: bool支持引用查找
implementation_provider: bool支持实现查找
type_definition_provider: bool支持类型定义
document_symbol_provider: bool支持文档符号
workspace_symbol_provider: bool支持工作区符号
rename_provider: bool支持重命名
completion_provider: Option<CompletionOptions>支持代码补全
signature_help_provider: Option<SignatureHelpOptions>支持签名帮助
Trait Implementations§
Source§impl Clone for LspCapabilities
impl Clone for LspCapabilities
Source§fn clone(&self) -> LspCapabilities
fn clone(&self) -> LspCapabilities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LspCapabilities
impl Debug for LspCapabilities
Auto Trait Implementations§
impl Freeze for LspCapabilities
impl RefUnwindSafe for LspCapabilities
impl Send for LspCapabilities
impl Sync for LspCapabilities
impl Unpin for LspCapabilities
impl UnsafeUnpin for LspCapabilities
impl UnwindSafe for LspCapabilities
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more