Skip to content

Commit d38b7b8

Browse files
committed
minor: Don't log cancelled diagnostics
1 parent fbffe73 commit d38b7b8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

crates/rust-analyzer/src/main_loop.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::{
88

99
use always_assert::always;
1010
use crossbeam_channel::{select, Receiver};
11-
use ide_db::base_db::{Cancelled, SourceDatabaseExt, VfsPath};
11+
use ide_db::base_db::{SourceDatabaseExt, VfsPath};
1212
use lsp_server::{Connection, Notification, Request};
1313
use lsp_types::notification::Notification as _;
1414
use vfs::{ChangeKind, FileId};
@@ -796,11 +796,6 @@ impl GlobalState {
796796
.into_iter()
797797
.filter_map(|file_id| {
798798
handlers::publish_diagnostics(&snapshot, file_id)
799-
.map_err(|err| {
800-
if err.is::<Cancelled>() {
801-
tracing::error!("failed to compute diagnostics: {:?}", err);
802-
}
803-
})
804799
.ok()
805800
.map(|diags| (file_id, diags))
806801
})

0 commit comments

Comments
 (0)