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.

Renumber protobuf fields, bump protocol version

Max Brunsfeld1e604546434b
diff --git a/crates/rpc/proto/zed.proto b/crates/rpc/proto/zed.proto
index 61c25f8f84d..92c85677f69 100644
--- a/crates/rpc/proto/zed.proto
+++ b/crates/rpc/proto/zed.proto
@@ -1324,17 +1324,17 @@ message Operation {
message Edit {
uint32 replica_id = 1;
- uint32 lamport_timestamp = 3;
- repeated VectorClockEntry version = 4;
- repeated Range ranges = 5;
- repeated string new_text = 6;
+ uint32 lamport_timestamp = 2;
+ repeated VectorClockEntry version = 3;
+ repeated Range ranges = 4;
+ repeated string new_text = 5;
}
message Undo {
uint32 replica_id = 1;
- uint32 lamport_timestamp = 3;
- repeated VectorClockEntry version = 4;
- repeated UndoCount counts = 5;
+ uint32 lamport_timestamp = 2;
+ repeated VectorClockEntry version = 3;
+ repeated UndoCount counts = 4;
}
message UpdateSelections {
diff --git a/crates/rpc/src/rpc.rs b/crates/rpc/src/rpc.rs
index bc9dd6f80ba..d64cbae9299 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 = 61;
+pub const PROTOCOL_VERSION: u32 = 62;