Move all configuration of individual LSP servers to LspAdapter
This commit is contained in:
parent
ebc711f9f5
commit
3b4cab9094
6 changed files with 65 additions and 52 deletions
|
@ -112,6 +112,14 @@ impl LspAdapter for RustLspAdapter {
|
|||
.boxed()
|
||||
}
|
||||
|
||||
fn disk_based_diagnostic_sources(&self) -> &'static [&'static str] {
|
||||
&["rustc"]
|
||||
}
|
||||
|
||||
fn disk_based_diagnostics_progress_token(&self) -> Option<&'static str> {
|
||||
Some("rustAnalyzer/cargo check")
|
||||
}
|
||||
|
||||
fn process_diagnostics(&self, params: &mut lsp::PublishDiagnosticsParams) {
|
||||
lazy_static! {
|
||||
static ref REGEX: Regex = Regex::new("(?m)`([^`]+)\n`$").unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue