pub struct LspServerConfig {
pub language_id: String,
pub command: String,
pub args: Vec<String>,
pub env: HashMap<String, String>,
pub file_patterns: Vec<String>,
pub initialization_options: Option<Value>,
pub timeout_seconds: u64,
}Expand description
Configuration for a single LSP server.
Fields§
§language_id: StringLanguage identifier (e.g., “rust”, “python”, “typescript”).
command: StringCommand to start the LSP server.
args: Vec<String>Arguments to pass to the LSP server command.
env: HashMap<String, String>Environment variables for the LSP server process.
file_patterns: Vec<String>File patterns this server handles (glob patterns).
initialization_options: Option<Value>LSP initialization options (server-specific).
timeout_seconds: u64Request timeout in seconds.
Implementations§
Source§impl LspServerConfig
impl LspServerConfig
Sourcepub fn rust_analyzer() -> Self
pub fn rust_analyzer() -> Self
Create a default configuration for rust-analyzer.
Sourcepub fn typescript() -> Self
pub fn typescript() -> Self
Create a default configuration for TypeScript language server.
Trait Implementations§
Source§impl Clone for LspServerConfig
impl Clone for LspServerConfig
Source§fn clone(&self) -> LspServerConfig
fn clone(&self) -> LspServerConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 LspServerConfig
impl Debug for LspServerConfig
Source§impl<'de> Deserialize<'de> for LspServerConfig
impl<'de> Deserialize<'de> for LspServerConfig
Source§fn 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
Auto Trait Implementations§
impl Freeze for LspServerConfig
impl RefUnwindSafe for LspServerConfig
impl Send for LspServerConfig
impl Sync for LspServerConfig
impl Unpin for LspServerConfig
impl UnwindSafe for LspServerConfig
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