Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Bump protocol version back down as proto changes are non-breaking

Julia03cfd23ac563
diff --git a/crates/editor/src/multi_buffer.rs b/crates/editor/src/multi_buffer.rs
index 969a9702995..e3f12c18421 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::<PointUtf16>();
- //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 ca86b93bfd4..674ce4f50eb 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<Anchor>`?
pub fn deserialize_anchor(anchor: proto::Anchor) -> Option<Anchor> {
Some(Anchor {
timestamp: clock::Local {
diff --git a/crates/rpc/src/rpc.rs b/crates/rpc/src/rpc.rs
index 5ca5711d9ca..b6aef64677b 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;