zed/crates
Antonio Scandurra d7fcb049d4 Don't register an entity ID extractor for non-entity subscriptions
This commit fixes a panic that could occur when registering N subscriptions for
N entities of the same kind. Before, when dropping the first of the
subscriptions, we would remove the entity ID extractor as well. This was,
however, used by all the other N - 1 subscriptions which would then start
losing messages. In addition, dropping yet another subscription of that kind
would result in a panic, because we wouldn't find the extractor in the map
upon invoking `Subscription::drop`.

With this change we will avoid removing the ID extractor when dropping a
subscription. Crucially, we also avoid inserting extractors for simple message
subscriptions. This enables these non-entity subscriptions to be dropped and
re-registered without seeing a "registered handler for the same message twice"
panic.
2022-01-11 08:21:35 +01:00
..
chat_panel Unify Flexible and Expanded elements 2022-01-06 17:29:34 -08:00
client Don't register an entity ID extractor for non-entity subscriptions 2022-01-11 08:21:35 +01:00
clock Fix Global::gt and rename it to changed_since 2022-01-05 17:36:12 -08:00
collections Name the root file of every crate after the crate to ease navigation 2021-11-30 12:46:39 -07:00
contacts_panel Unify Flexible and Expanded elements 2022-01-06 17:29:34 -08:00
diagnostics In diagnostics editor, attempt to open excerpts in a different pane 2022-01-10 16:33:25 -08:00
editor Fix outdent not working when cursor is at column 0 2022-01-10 15:32:28 +01:00
file_finder Refactor opening workspace items 2022-01-07 17:38:37 +01:00
fsevent Name the root file of every crate after the crate to ease navigation 2021-11-30 12:46:39 -07:00
fuzzy Name the root file of every crate after the crate to ease navigation 2021-11-30 12:46:39 -07:00
go_to_line Correctly incorporate editor settings into diagnostic header rendering 2021-12-16 16:36:33 -08:00
gpui Reuse views when moving between diagnostic view and editors 2022-01-07 11:00:12 -08:00
gpui_macros Name the root file of every crate after the crate to ease navigation 2021-11-30 12:46:39 -07:00
journal Merge branch 'main' into share-project 2021-12-20 11:42:59 -08:00
language Allow disk-based diagnostic progress begin/end events to interleave 2022-01-06 09:32:08 -07:00
lsp Allow disk-based diagnostic progress begin/end events to interleave 2022-01-06 09:32:08 -07:00
project Add files to project diagnostics view in order 2022-01-10 16:17:56 -08:00
project_panel Refactor opening workspace items 2022-01-07 17:38:37 +01:00
rpc Display a "Checking..." message when running disk-based diagnostics 2022-01-07 15:03:19 +01:00
server Display a "Checking..." message when running disk-based diagnostics 2022-01-07 15:03:19 +01:00
sum_tree Send diagnostic summaries to guests when they join the project 2022-01-06 12:12:09 -07:00
text Merge branch 'main' into polish-project-diagnostics 2022-01-05 20:38:20 -08:00
theme Tweak color of share icon in titlebar 2022-01-10 11:26:07 -08:00
theme_selector Unify Flexible and Expanded elements 2022-01-06 17:29:34 -08:00
util Introduce randomized test for collaboration on buffers 2022-01-05 11:51:41 +01:00
workspace In diagnostics editor, attempt to open excerpts in a different pane 2022-01-10 16:33:25 -08:00
zed Tweak color of share icon in titlebar 2022-01-10 11:26:07 -08:00