Finish getting multiple diagnostics sources building and running

This commit is contained in:
Julia 2023-04-19 15:28:09 -04:00 committed by Max Brunsfeld
parent bb4de47b15
commit 6156dbced0
8 changed files with 34 additions and 23 deletions

View file

@ -250,10 +250,6 @@ impl LanguageServer {
log::trace!("incoming message:{}", String::from_utf8_lossy(&buffer));
if let Ok(msg) = serde_json::from_slice::<AnyNotification>(&buffer) {
dbg!(
msg.method,
notification_handlers.lock().keys().collect::<Vec<_>>()
);
if let Some(handler) = notification_handlers.lock().get_mut(msg.method) {
handler(msg.id, msg.params.get(), cx.clone());
} else {