React on message-less LSP requests properly

Co-Authored-By: Julia Risley <julia@zed.dev>
This commit is contained in:
Kirill Bulatov 2023-06-02 18:23:37 +03:00
parent 7a268b1cf6
commit f83cfda9bc
4 changed files with 5 additions and 12 deletions

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);
}
_ => {}

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,