Get ESLint to launch and provide diagnostics
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
6e68ff5a50
commit
2a5c0fa5f8
5 changed files with 82 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue