Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

Neovim code action does not hide Harper diagnostic #1785 fix (#1788)

J5455e1c9c87b
diff --git a/harper-core/src/span.rs b/harper-core/src/span.rs
index 5ba67fccc..e95e815ba 100644
--- a/harper-core/src/span.rs
+++ b/harper-core/src/span.rs
@@ -24,6 +24,7 @@ pub struct Span<T> {
/// Note that [`Span`] represents an exclusive range. This means that a `Span::new(0, 5)` will
/// cover the values `0, 1, 2, 3, 4`; it will not cover the `5`.
pub end: usize,
+ #[serde(skip)]
span_type: PhantomData<T>,
}