languageserver_types

Struct ServerCapabilities

Source
pub struct ServerCapabilities {
Show 21 fields pub text_document_sync: Option<TextDocumentSyncCapability>, pub hover_provider: Option<bool>, pub completion_provider: Option<CompletionOptions>, pub signature_help_provider: Option<SignatureHelpOptions>, pub definition_provider: Option<bool>, pub type_definition_provider: Option<TypeDefinitionProviderCapability>, pub implementation_provider: Option<ImplementationProviderCapability>, pub references_provider: Option<bool>, pub document_highlight_provider: Option<bool>, pub document_symbol_provider: Option<bool>, pub workspace_symbol_provider: Option<bool>, pub code_action_provider: Option<CodeActionProviderCapability>, pub code_lens_provider: Option<CodeLensOptions>, pub document_formatting_provider: Option<bool>, pub document_range_formatting_provider: Option<bool>, pub document_on_type_formatting_provider: Option<DocumentOnTypeFormattingOptions>, pub rename_provider: Option<RenameProviderCapability>, pub color_provider: Option<ColorProviderCapability>, pub folding_range_provider: Option<FoldingRangeProviderCapability>, pub execute_command_provider: Option<ExecuteCommandOptions>, pub workspace: Option<WorkspaceCapability>,
}

Fields§

§text_document_sync: Option<TextDocumentSyncCapability>

Defines how text documents are synced.

§hover_provider: Option<bool>

The server provides hover support.

§completion_provider: Option<CompletionOptions>

The server provides completion support.

§signature_help_provider: Option<SignatureHelpOptions>

The server provides signature help support.

§definition_provider: Option<bool>

The server provides goto definition support.

§type_definition_provider: Option<TypeDefinitionProviderCapability>

The server provides goto type definition support.

§implementation_provider: Option<ImplementationProviderCapability>

the server provides goto implementation support.

§references_provider: Option<bool>

The server provides find references support.

§document_highlight_provider: Option<bool>

The server provides document highlight support.

§document_symbol_provider: Option<bool>

The server provides document symbol support.

§workspace_symbol_provider: Option<bool>

The server provides workspace symbol support.

§code_action_provider: Option<CodeActionProviderCapability>

The server provides code actions.

§code_lens_provider: Option<CodeLensOptions>

The server provides code lens.

§document_formatting_provider: Option<bool>

The server provides document formatting.

§document_range_formatting_provider: Option<bool>

The server provides document range formatting.

§document_on_type_formatting_provider: Option<DocumentOnTypeFormattingOptions>

The server provides document formatting on typing.

§rename_provider: Option<RenameProviderCapability>

The server provides rename support.

§color_provider: Option<ColorProviderCapability>

The server provides color provider support.

§folding_range_provider: Option<FoldingRangeProviderCapability>

The server provides folding provider support.

§execute_command_provider: Option<ExecuteCommandOptions>

The server provides execute command support.

§workspace: Option<WorkspaceCapability>

Workspace specific server capabilities

Trait Implementations§

Source§

impl Debug for ServerCapabilities

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ServerCapabilities

Source§

fn default() -> ServerCapabilities

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ServerCapabilities

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ServerCapabilities

Source§

fn eq(&self, other: &ServerCapabilities) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ServerCapabilities

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for ServerCapabilities

Source§

impl StructuralPartialEq for ServerCapabilities

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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