From 03cfd23ac563d74d43d29ec3651362fb8efa0df3 Mon Sep 17 00:00:00 2001 From: Julia Date: Wed, 23 Nov 2022 13:33:30 -0500 Subject: [PATCH] Bump protocol version back down as proto changes are non-breaking --- crates/editor/src/multi_buffer.rs | 1 - crates/language/src/proto.rs | 1 - crates/rpc/src/rpc.rs | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/editor/src/multi_buffer.rs b/crates/editor/src/multi_buffer.rs index 969a970299..e3f12c1842 100644 --- a/crates/editor/src/multi_buffer.rs +++ b/crates/editor/src/multi_buffer.rs @@ -1755,7 +1755,6 @@ impl MultiBufferSnapshot { } let mut cursor = self.excerpts.cursor::(); - //Cannot not panic if out of bounds as it will just not reach the target position cursor.seek(&point.0, Bias::Right, &()); let overshoot = if let Some(excerpt) = cursor.item() { let excerpt_start = excerpt diff --git a/crates/language/src/proto.rs b/crates/language/src/proto.rs index ca86b93bfd..674ce4f50e 100644 --- a/crates/language/src/proto.rs +++ b/crates/language/src/proto.rs @@ -357,7 +357,6 @@ pub fn deserialize_diagnostics( .collect() } -//TODO: Deserialize anchors into `Unclipped`? pub fn deserialize_anchor(anchor: proto::Anchor) -> Option { Some(Anchor { timestamp: clock::Local { diff --git a/crates/rpc/src/rpc.rs b/crates/rpc/src/rpc.rs index 5ca5711d9c..b6aef64677 100644 --- a/crates/rpc/src/rpc.rs +++ b/crates/rpc/src/rpc.rs @@ -6,4 +6,4 @@ pub use conn::Connection; pub use peer::*; mod macros; -pub const PROTOCOL_VERSION: u32 = 40; +pub const PROTOCOL_VERSION: u32 = 39;