zed/crates
Antonio Scandurra ef784cf21e Remove summaries that don't contain any errors or warnings
When opening a buffer, some language servers might start reporting
diagnostics. When closing a buffer, they might report that no diagnostics
are present for that buffer. Previously, we would keep an empty summary entry
which would cause us to open a buffer in the project diagnostics view, only to
drop it because it contained no diagnostics. However, the act of opening it
caused the language server to asynchronously report non-empty diagnostics.
We would therefore handle this as an update, but the previous closing of the
buffer would cause the language server to report empty diagnostics again. This
would cause the project diagnostics view to thrash infinitely between these two
states, pegging the CPU and constantly refreshing the UI.

With this commit we won't maintain empty summary entries for files that contain
no diagnostics, which fixes the above issue.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-04-19 15:30:46 +02:00
..
assets Move assets to their own crate, load keymaps in vim tests 2022-04-11 15:54:52 -07:00
breadcrumbs Move Settings to its own crate 2022-04-06 10:23:33 -07:00
chat_panel Load all keybindings from JSON file 2022-04-10 14:29:45 -07:00
client Merge pull request #781 from zed-industries/structured-logging 2022-04-09 07:40:24 -06:00
clock Put vector clock serialization logic alongside other serialization logic 2022-03-04 13:54:07 -08:00
collab Remove summaries that don't contain any errors or warnings 2022-04-19 15:30:46 +02:00
collections Disable doctests for all libraries 2022-03-03 16:15:56 -08:00
command_palette Format action names more readably in command palette 2022-04-18 18:12:43 -07:00
contacts_panel Move Settings to its own crate 2022-04-06 10:23:33 -07:00
diagnostics Allow dumping the project diagnostic view's state as JSON 2022-04-11 19:51:46 -07:00
editor Always clear rename state when selections change 2022-04-15 10:32:07 +02:00
file_finder Use Picker in Outline view 2022-04-18 17:11:39 -07:00
fsevent Disable doctests for all libraries 2022-03-03 16:15:56 -08:00
fuzzy Disable doctests for all libraries 2022-03-03 16:15:56 -08:00
go_to_line Load modal key bindings from JSON file 2022-04-10 11:39:43 -07:00
gpui Fix hang when dropping ::scoped future under deterministic executor 2022-04-18 17:11:39 -07:00
gpui_macros Allow taking an Arc<Deterministic> in [gpui::test]-decorated tests 2022-04-11 13:42:30 +02:00
journal Merge branch 'main' into load-keymaps 2022-04-11 15:55:10 -07:00
language Fix divergence bug when peer reconnects reusing a prior replica id 2022-04-11 13:17:47 +02:00
lsp Introduce structured logging 2022-04-08 10:06:51 -06:00
outline Use Picker in Outline view 2022-04-18 17:11:39 -07:00
picker Allow toggling other modals from the command palette 2022-04-18 17:11:39 -07:00
project Remove summaries that don't contain any errors or warnings 2022-04-19 15:30:46 +02:00
project_panel Load all keybindings from JSON file 2022-04-10 14:29:45 -07:00
project_symbols Use Picker in Outline view 2022-04-18 17:11:39 -07:00
rpc Remove summaries that don't contain any errors or warnings 2022-04-19 15:30:46 +02:00
search Merge pull request #822 from zed-industries/focus-project-search-query 2022-04-14 12:25:59 -06:00
settings Use '*' to represent the default context in keymap files 2022-04-11 17:17:03 -07:00
snippet Add a snippet unit test with an escaped curly brace 2022-03-11 13:02:20 -08:00
sum_tree Introduce structured logging 2022-04-08 10:06:51 -06:00
text Fix divergence bug when peer reconnects reusing a prior replica id 2022-04-11 13:17:47 +02:00
theme Add basic styling to keystrokes in command palette 2022-04-18 17:11:37 -07:00
theme_selector Use Picker in ThemeSelector 2022-04-18 17:11:39 -07:00
util Introduce structured logging 2022-04-08 10:06:51 -06:00
vim Revert d/c j and k binding special casing 2022-04-18 14:44:11 -07:00
workspace Make all pickers respect mouse clicks 2022-04-18 17:11:39 -07:00
zed Remove unused crossbeam-channel dependency in zed crate 2022-04-18 17:11:39 -07:00