pub struct LspServerConfig {
pub name: String,
pub command: String,
pub args: Vec<String>,
pub env: BTreeMap<String, String>,
pub workspace_root: PathBuf,
pub initialization_options: Option<Value>,
pub extension_to_language: BTreeMap<String, String>,
}Fields§
§name: String§command: String§args: Vec<String>§env: BTreeMap<String, String>§workspace_root: PathBuf§initialization_options: Option<Value>§extension_to_language: BTreeMap<String, String>Implementations§
Source§impl LspServerConfig
impl LspServerConfig
pub fn language_id_for(&self, path: &Path) -> Option<&str>
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 PartialEq for LspServerConfig
impl PartialEq for LspServerConfig
impl Eq for LspServerConfig
impl StructuralPartialEq for LspServerConfig
Auto Trait Implementations§
impl Freeze for LspServerConfig
impl RefUnwindSafe for LspServerConfig
impl Send for LspServerConfig
impl Sync for LspServerConfig
impl Unpin for LspServerConfig
impl UnsafeUnpin 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