Merge pull request #1808 from zed-industries/fix-diagnostics-on-rust

Match progress token's prefix to detect disk-based diagnostic progress
This commit is contained in:
Antonio Scandurra 2022-10-25 10:46:59 +01:00
parent 50ba8bdc9b
commit 70cf542408
3 changed files with 10 additions and 5 deletions

View file

@ -93,7 +93,7 @@ impl LspAdapter for RustLspAdapter {
}
async fn disk_based_diagnostics_progress_token(&self) -> Option<String> {
Some("rustAnalyzer/cargo check".into())
Some("rust-analyzer/checkOnSave".into())
}
async fn process_diagnostics(&self, params: &mut lsp::PublishDiagnosticsParams) {