Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/handlers/lsp.rs')
-rw-r--r--helix-view/src/handlers/lsp.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/helix-view/src/handlers/lsp.rs b/helix-view/src/handlers/lsp.rs
index 96ab4626..c1041b2a 100644
--- a/helix-view/src/handlers/lsp.rs
+++ b/helix-view/src/handlers/lsp.rs
@@ -1,5 +1,4 @@
use std::collections::btree_map::Entry;
-use std::collections::HashSet;
use std::fmt::Display;
use crate::editor::Action;
@@ -31,14 +30,6 @@ pub enum SignatureHelpEvent {
RequestComplete { open: bool },
}
-pub struct PullDiagnosticsEvent {
- pub document_id: DocumentId,
-}
-
-pub struct PullAllDocumentsDiagnosticsEvent {
- pub language_servers: HashSet<LanguageServerId>,
-}
-
#[derive(Debug)]
pub struct ApplyEditError {
pub kind: ApplyEditErrorKind,
@@ -364,7 +355,7 @@ impl Editor {
&& diagnostic
.source
.as_ref()
- .is_none_or(|source| !unchanged_diag_sources.contains(source))
+ .map_or(true, |source| !unchanged_diag_sources.contains(source))
};
let diagnostics = Self::doc_diagnostics_with_filter(
&self.language_servers,