mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 19:02:07 +00:00
984e366c32
The main reason for this is that we need to include information about a buffer's UndoMap into its protobuf representation. But it's a bit complex to correctly incorporate this information into the current protobuf representation. If we want to continue reusing `Buffer::apply_remote_edit` for incorporating the historical operations, we need to either make that method capable of incorporating already-undone edits, or serialize the UndoMap into undo *operations*, so that we can apply these undo operations after the fact when deserializing. But this is not trivial, because an UndoOperation requires information about the full offset ranges that were undone. |
||
---|---|---|
.. | ||
proto | ||
src | ||
build.rs | ||
Cargo.toml |