mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
minor: Don't log cancelled diagnostics
This commit is contained in:
parent
fbffe73612
commit
d38b7b88c6
1 changed files with 1 additions and 6 deletions
|
@ -8,7 +8,7 @@ use std::{
|
|||
|
||||
use always_assert::always;
|
||||
use crossbeam_channel::{select, Receiver};
|
||||
use ide_db::base_db::{Cancelled, SourceDatabaseExt, VfsPath};
|
||||
use ide_db::base_db::{SourceDatabaseExt, VfsPath};
|
||||
use lsp_server::{Connection, Notification, Request};
|
||||
use lsp_types::notification::Notification as _;
|
||||
use vfs::{ChangeKind, FileId};
|
||||
|
@ -796,11 +796,6 @@ impl GlobalState {
|
|||
.into_iter()
|
||||
.filter_map(|file_id| {
|
||||
handlers::publish_diagnostics(&snapshot, file_id)
|
||||
.map_err(|err| {
|
||||
if err.is::<Cancelled>() {
|
||||
tracing::error!("failed to compute diagnostics: {:?}", err);
|
||||
}
|
||||
})
|
||||
.ok()
|
||||
.map(|diags| (file_id, diags))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue