Get ESLint to launch and provide diagnostics

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
Julia 2023-04-18 10:44:58 -04:00 committed by Max Brunsfeld
parent 6e68ff5a50
commit 2a5c0fa5f8
5 changed files with 82 additions and 14 deletions

View file

@ -250,6 +250,10 @@ 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 {