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 969a9702995fe0258e1e7bfeaa3a410b4dea6647..e3f12c18421832a1add4447c4249872e959971de 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 ca86b93bfd462067cb28722bcd58d1a801b05ea0..674ce4f50eb5988098c32c3d7557852f9e2b912a 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 5ca5711d9ca8c43cd5f1979ee76ea11e61053bec..b6aef64677b6f06716a6ea40d9b52a42017c3543 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;