ZIm/crates
Antonio Scandurra 8826ad5ddd Make Buffer::edit and MultiBuffer::edit resilient to inverted ranges
Previously, we would accept edits containing out-of-order ranges. When
generating such ranges in our randomized tests, many invariants started
breaking causing e.g. undo/redo to misbehave and operation application
to panic.

In theory, we should never pass inverted ranges, but this commit changes
the above functions to swap the start and the end when that occurs to avoid
breaking the entire system and panicking.
2022-06-06 15:22:36 +02:00
..
assets Move assets to their own crate, load keymaps in vim tests 2022-04-11 15:54:52 -07:00
auto_update Cap MessageStream buffer size to 1MB 2022-05-31 11:16:32 +02:00
breadcrumbs Reduce accessibility of multibuffer read to reduce risk of borrowing snapshot and buffer refcells twice 2022-05-13 16:58:30 -07:00
chat_panel Merge branch 'mouse-events' into project-panel-context-menu 2022-05-27 12:07:00 +02:00
cli Cap MessageStream buffer size to 1MB 2022-05-31 11:16:32 +02:00
client Require that PartialEq is implemented for Action 2022-06-06 09:18:44 +02:00
clock Put vector clock serialization logic alongside other serialization logic 2022-03-04 13:54:07 -08:00
collab Add setting to make projects online/offline by default 2022-06-03 17:01:15 -07:00
collections Disable doctests for all libraries 2022-03-03 16:15:56 -08:00
command_palette Upgrade deps to avoid multiple versions of transitive deps 2022-06-02 17:38:33 -07:00
contacts_panel Require that PartialEq is implemented for Action 2022-06-06 09:18:44 +02:00
context_menu Don't dismiss context menu when right-clicking project panel again 2022-06-02 10:00:52 +02:00
diagnostics Require that PartialEq is implemented for Action 2022-06-06 09:18:44 +02:00
editor Make Buffer::edit and MultiBuffer::edit resilient to inverted ranges 2022-06-06 15:22:36 +02:00
file_finder Upgrade deps to avoid multiple versions of transitive deps 2022-06-02 17:38:33 -07:00
fsevent 🎨 2022-05-23 09:48:00 +02:00
fuzzy Show requests in contacts panel 2022-05-09 12:48:07 -06:00
go_to_line Introduce keyboard navigation in context menus 2022-05-26 16:36:30 +02:00
gpui Fix tests 2022-06-06 09:29:42 +02:00
gpui_macros Allow taking an Arc<Deterministic> in [gpui::test]-decorated tests 2022-04-11 13:42:30 +02:00
journal Reduce accessibility of multibuffer read to reduce risk of borrowing snapshot and buffer refcells twice 2022-05-13 16:58:30 -07:00
language Make Buffer::edit and MultiBuffer::edit resilient to inverted ranges 2022-06-06 15:22:36 +02:00
lsp Upgrade deps to avoid multiple versions of transitive deps 2022-06-02 17:38:33 -07:00
menu Require that PartialEq is implemented for Action 2022-06-06 09:18:44 +02:00
outline Switch MouseEventHandler to use MouseRegions 2022-05-26 20:00:01 -06:00
picker Upgrade deps to avoid multiple versions of transitive deps 2022-06-02 17:38:33 -07:00
project Add setting to make projects online/offline by default 2022-06-03 17:01:15 -07:00
project_panel Require that PartialEq is implemented for Action 2022-06-06 09:18:44 +02:00
project_symbols Switch MouseEventHandler to use MouseRegions 2022-05-26 20:00:01 -06:00
rpc Bump protocol version 2022-06-02 18:06:29 -07:00
search Require that PartialEq is implemented for Action 2022-06-06 09:18:44 +02:00
settings Add setting to make projects online/offline by default 2022-06-03 17:01:15 -07:00
snippet Add a snippet unit test with an escaped curly brace 2022-03-11 13:02:20 -08:00
sum_tree Upgrade deps to avoid multiple versions of transitive deps 2022-06-02 17:38:33 -07:00
text Upgrade deps to avoid multiple versions of transitive deps 2022-06-02 17:38:33 -07:00
theme Style the contact panel while public/private operations are in-flight 2022-06-02 17:38:33 -07:00
theme_selector Switch MouseEventHandler to use MouseRegions 2022-05-26 20:00:01 -06:00
util fix bug in marked_range utils 2022-05-26 17:02:05 -07:00
vim Require that PartialEq is implemented for Action 2022-06-06 09:18:44 +02:00
workspace Require that PartialEq is implemented for Action 2022-06-06 09:18:44 +02:00
zed Require that PartialEq is implemented for Action 2022-06-06 09:18:44 +02:00