zed/crates
Antonio Scandurra ca1d0a6e59 Ignore tokens that were not created via WorkDoneProgressCreate
With the new version of rust-analyzer, we were seeing stray `WorkDoneProgress::End`
messages that create an imbalance in the `pending_diagnostic_updates` that never
resolves. This was causing the diagnostic status bar item to never update because
we wouldn't emit `DiskBasedDiagnosticsStarted` nor `DiskBasedDiagnosticsFinished`.

This commit fixes the above situation by only acknowledging progress report for tokens
that have explicitly been created via the `WorkDoneProgressCreate` request, as stated
by the protocol.

In addition to that, we are replacing the `pending_diagnostic_updates: isize` with
a `has_pending_diagnostic_updates: bool`. We added it at some point to prevent a similar
issue where we would observe begin/end reports in a seemingly random order, which would cause
us to permanently display a `checking...` message in the status bar. I believe this commit
fixes that as well because the `isize` was just a less general solution for the same
underlying issue. As the protocol states: "the token provided in the create request should
only be used once (e.g. only one begin, many report and one end notification should be sent
to it)."
2022-06-28 10:08:43 +02:00
..
assets
auto_update Show a notification after Zed auto-updates 2022-06-06 17:42:31 -07: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 Accept a datetime range when querying project activity 2022-06-21 14:03:10 +02:00
cli Cap MessageStream buffer size to 1MB 2022-05-31 11:16:32 +02:00
client Remove stray log statement when contacts are updated 2022-06-22 19:40:52 +02:00
clock
collab Ignore tokens that were not created via WorkDoneProgressCreate 2022-06-28 10:08:43 +02:00
collections
command_palette Upgrade deps to avoid multiple versions of transitive deps 2022-06-02 17:38:33 -07:00
contacts_panel Avoid holding a strong project handle in an on_click callback 2022-06-17 15:41:48 -07:00
context_menu Use a different fit mode for tooltips 2022-06-15 16:45:04 +02:00
diagnostics Fix editor tests after changing the semantics of is_dirty 2022-06-17 12:57:40 +02:00
editor add hover popover setting 2022-06-27 16:21:22 -07: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
go_to_line Introduce keyboard navigation in context menus 2022-05-26 16:36:30 +02:00
gpui Address hover panic and add hint to install go when language server failed to install 2022-06-27 15:48:15 -07:00
gpui_macros
journal Prevent setting files from showing up in project and contacts panels 2022-06-14 14:47:16 +02:00
language Add python outline and bracket queries 2022-06-22 16:28:09 -07:00
lsp Ignore tokens that were not created via WorkDoneProgressCreate 2022-06-28 10:08:43 +02:00
lsp_status Remove unnecessary dependencies from lsp_status crate 2022-06-16 10:02:23 +02: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 Ignore tokens that were not created via WorkDoneProgressCreate 2022-06-28 10:08:43 +02:00
project_panel Replace "Remove Folder from Project" label with "Remove from Project` 2022-06-20 10:53:26 +02:00
project_symbols Switch MouseEventHandler to use MouseRegions 2022-05-26 20:00:01 -06:00
rpc bump protocol version and fix panic from storing display points instead of anchors 2022-06-27 15:10:36 -07:00
search Display tooltip for select prev/next match buttons 2022-06-16 14:37:33 +02:00
settings add hover popover setting 2022-06-27 16:21:22 -07:00
snippet
sum_tree Upgrade deps to avoid multiple versions of transitive deps 2022-06-02 17:38:33 -07:00
text Don't compute fingerprint for every text summary 2022-06-17 15:15:27 +02:00
theme working jump to definition with tests 2022-06-24 15:09:31 -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 Add tests and fix bugs for editor indent/outdent commands w/ hard tabs 2022-06-09 10:26:09 -07:00
workspace 💄 2022-06-28 08:04:39 +02:00
zed Merge pull request #1241 from zed-industries/reopen-closed-item 2022-06-28 08:09:03 +02:00