pub struct LspServerConfig {
pub command: String,
pub args: Vec<String>,
pub language_id: String,
pub extensions: Vec<String>,
}Expand description
Language server configuration for a specific language.
Fields§
§command: String§args: Vec<String>§language_id: String§extensions: Vec<String>Implementations§
Source§impl LspServerConfig
impl LspServerConfig
Sourcepub fn detect_available() -> Vec<Self>
pub fn detect_available() -> Vec<Self>
Detect available language servers on the system.
Sourcepub fn install_suggestion(language_id: &str) -> String
pub fn install_suggestion(language_id: &str) -> String
Return the install command for a given language ID. Used when an LSP server is needed but not detected.
Sourcepub fn check_coverage(
available: &[Self],
languages_in_project: &HashMap<String, (usize, usize)>,
) -> Vec<LspMissingServer>
pub fn check_coverage( available: &[Self], languages_in_project: &HashMap<String, (usize, usize)>, ) -> Vec<LspMissingServer>
Check which languages in the project have no LSP server available. Returns a list of missing servers with install suggestions.
languages_in_project is a map of language_id → (file_count, call_edge_count).
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 moreAuto 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