pub struct LspServerConfig {
pub language: String,
pub extensions: Vec<String>,
pub executable: String,
pub args: Vec<String>,
pub env: HashMap<String, String>,
pub init_options: Option<Value>,
pub enabled: bool,
pub timeout_ms: u64,
pub max_restarts: u32,
pub idle_timeout_ms: u64,
pub output_mapping: Option<OutputMappingConfig>,
}Expand description
Configuration for an external LSP server
Fields§
§language: StringLanguage identifier (e.g., “rust”, “typescript”)
extensions: Vec<String>File extensions this server handles
executable: StringExecutable path (can use $PATH)
args: Vec<String>Command line arguments
env: HashMap<String, String>Environment variables
init_options: Option<Value>Initialization options (sent in initialize request)
enabled: boolWhether this server is enabled
timeout_ms: u64Timeout for requests in milliseconds
max_restarts: u32Maximum restart attempts
idle_timeout_ms: u64Idle timeout before shutdown (0 = never)
output_mapping: Option<OutputMappingConfig>Output mapping rules for transforming LSP responses
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