3b9d760
Add blanket implementation for (D1, D2) when they impl `Dimension`
Antonio Scandurra created
3b9d760
Add blanket implementation for (D1, D2) when they impl `Dimension`
Antonio Scandurra created
f016400
Remove `FullOffset`
Antonio Scandurra created
eaf0946
Remove commented out code
Antonio Scandurra created
ec07b8c
Change fragment's visibility only if it was visible at a version
Antonio Scandurra created
9bf3038
Coalesce contiguous ranges when editing locally
Antonio Scandurra created
23c4621
Reenable undo/redo in randomized concurrent edit test
Currently this fails
Max Brunsfeld created
de9626a
Get random concurrent edits test passing, except for undo
Max Brunsfeld created
6f0ef36
Make SEED and ITERATIONS variables work independently
This way, after finding one failure, you can still search for a simpler failure by running another series of iterations starting from the next seed.
Max Brunsfeld created
f6bb1a9
Implement Ord manually for time::Lamport
Max Brunsfeld created
33472eb
Ensure fragments are only consumed once in apply_local_edit
Max Brunsfeld created
02e4745
Improve logging for randomized buffer test
Max Brunsfeld created
f101050
Create shorter Debug impls for clocks
Max Brunsfeld created
9a29f55
WIP: Re-implement apply_local_edit to look more like apply_remote_edit
Co-Authored-By: Nathan Sobo <nathan@zed.dev> Co-Authored-By: Max Brunsfeld <max@zed.dev>
Antonio Scandurra , Nathan Sobo , and Max Brunsfeld created
72464a9
WIP: Start on `apply_remote_edit`
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
2ea8969
Add a simple unit test for applying remote edit operations
Max Brunsfeld created
6899424
Add custom error message for rope cursor slice precondition
Max Brunsfeld created
e021154
Add logging in random concurrent edits test
Max Brunsfeld created
bef93b3
Get undo/redo tests passing
Max Brunsfeld created
2c8d597
Add a hand-written error message for the `seek_internal` precondition
Max Brunsfeld created
01cfba0
Compute full ranges for edit operation inside of Buffer::splice_fragments
Max Brunsfeld created
657b0af
Avoid unnecessarily adding internal summaries in Cursor::next
Max Brunsfeld created
d83a046
Avoid calling SumTree::extent in Cursor::suffix
Max Brunsfeld created
60a1d47
Generalize Dimension<FragmentSummary> for tuples
Max Brunsfeld created
70cb755
Merge pull request #80 from zed-industries/collaboration-plans
Add document outlining plans for collaboration
Antonio Scandurra created
84fe7f5
Speed up anchor comparison when the version is the same
Antonio Scandurra created
11a3b8c
Don't increment clock for initial insertion
Antonio Scandurra created
5f28fdb
WIP
Max Brunsfeld created
74b07fe
WIP: Start representing edit operations with versions and multiple ranges
Compiling, long way to go though. Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
14b4127
wip
Max Brunsfeld created
dda9c68
Remove count field from FragmentSummary
Sort anchors according to their 'full offset' (deleted + visible)
Max Brunsfeld created
e3c0794
Compare anchors via their fragment and their offset within it
Co-Authored-By: Nathan Sobo <nathan@zed.dev> Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Max Brunsfeld , Nathan Sobo , and Antonio Scandurra created
df13cf0
WIP: Compare anchors without using FragmentId
Antonio Scandurra created
b3f13ce
Pull up `VersionedOffset`
Antonio Scandurra created
56efe30
Fix randomized tests for concurrent edits
Antonio Scandurra created
da7e3c8
Implement anchors using an offset + a version vector
Antonio Scandurra created
311e1b0
Supply a context when adding summary to `Dimension`
Antonio Scandurra created
6d83ed2
Add RPC implementation details to the collaboration plan
Nathan Sobo created
a4d16e6
Add document outlining plans for collaboration
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
e8a9eee
WIP
Antonio Scandurra created
3597305
Merge pull request #77 from zed-industries/merge-selections-larger-syntax-node
Merge selections correctly when selecting larger syntax node
Antonio Scandurra created
2ca4dd2
Merge pull request #78 from zed-industries/fewer-calls-to-add-summary
Avoid calling `add_summary` twice in `sum_tree::Cursor`
Antonio Scandurra created
7f26523
Fix tests
Antonio Scandurra created
32fbdfe
Avoid calling `add_summary` twice in `sum_tree::Cursor`
As I was looking into `SumTree` for the upcoming round of changes to the buffer, I noticed that we were inadvertently adding summaries twice every time we skipped over a node in the tree. This is a pretty heavy code path that's pretty ubiquitous in the codebase, so this commit gets rid of the unnecessary addition.
Antonio Scandurra created
7c41831
Merge selections correctly when selecting larger syntax node
When running this command with multiple cursors, if one of them was at a later position in the buffer but lying on a shallower node, it could happen that its start could move prior to cursors that were before it but lying on a deeper node. This could cause the selection merging algorithm to mistakenly keep some selections even if they overlapped. With this commit we now sort selections prior to merging them in `Editor::select_larger_syntax_node`.
Antonio Scandurra created
0811919
Add more emacs-inspired bindings
Word-wise movement and columnar selection without reaching for the arrows.
Nathan Sobo created
f87aa14
Fix error when running workspace:open command
Max Brunsfeld created
ff2ab4b
Merge pull request #75 from zed-industries/naming-cleanup
Clean up naming conventions project-wide
Nathan Sobo created
6ef4478
Rename context parameters to `cx` in gpui
Max Brunsfeld created
173f997
Rename context parameters to `cx` in sum_tree
Max Brunsfeld created
f6e2754
Rename context parameters to `cx` in main.rs
Max Brunsfeld created