pub struct LspServerSpec {
pub command: String,
pub args: Vec<String>,
pub extensions: Vec<String>,
}Expand description
One [capabilities.lsp.servers.<name>] entry — a user-configured
language server this module is allowed to spawn. command/args are
config-borne code execution (D-10) — see crate::configfile::sanitize_for_project
/ crate::userconfig’s project-strip, which refuses this table from an
untrusted project layer exactly like hooks/mcp.servers.
Fields§
§command: StringThe executable to spawn (searched on PATH like any Command::new).
args: Vec<String>Extra arguments passed to command.
extensions: Vec<String>File extensions (with or without a leading ., matched case-
insensitively) this server handles — a write to a matching path
lazily spawns (or reuses) this server.
Trait Implementations§
Source§impl Clone for LspServerSpec
impl Clone for LspServerSpec
Source§fn clone(&self) -> LspServerSpec
fn clone(&self) -> LspServerSpec
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 LspServerSpec
impl Debug for LspServerSpec
impl Eq for LspServerSpec
Source§impl PartialEq for LspServerSpec
impl PartialEq for LspServerSpec
impl StructuralPartialEq for LspServerSpec
Auto Trait Implementations§
impl Freeze for LspServerSpec
impl RefUnwindSafe for LspServerSpec
impl Send for LspServerSpec
impl Sync for LspServerSpec
impl Unpin for LspServerSpec
impl UnsafeUnpin for LspServerSpec
impl UnwindSafe for LspServerSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.