React on message-less LSP requests properly

Co-Authored-By: Julia Risley <julia@zed.dev>
This commit is contained in:
Kirill Bulatov
2023-06-29 22:25:48 +03:00
co-authored by Julia Risley
parent 7a268b1cf6
commit f83cfda9bc
4 changed files with 5 additions and 12 deletions
+1 -2
View File
@@ -1339,8 +1339,7 @@ impl Editor {
}));
project_subscriptions.push(cx.subscribe(project, |editor, _, event, cx| {
match event {
project::Event::LanguageServerReady(_) => {
dbg!("@@@@@@@@@@@@@ ReceiveD event");
project::Event::ReloadInlayHints => {
editor.update_inlay_hints(cx);
}
_ => {}
-1
View File
@@ -1821,7 +1821,6 @@ impl LineWithInvisibles {
// TODO kb bad: syscalls + cloning happen very frequently, check the timestamp first
let new_hints = editor.inlay_hints.read();
dbg!(new_hints.last());
self.draw_invisibles(
&selection_ranges,