Add handlers for LogMessage and statusNotification to copilot LSP

This commit is contained in:
Mikayla Maki
2023-03-31 10:58:18 -07:00
parent 54582fd77f
commit 4865ea2efc
3 changed files with 53 additions and 1 deletions
+1 -1
View File
@@ -475,7 +475,7 @@ impl LanguageServer {
let prev_handler = self.notification_handlers.lock().insert(
method,
Box::new(move |_, params, cx| {
if let Some(params) = serde_json::from_str(params).log_err() {
if let Some(params) = serde_json::from_str(dbg!(params)).log_err() {
f(params, cx);
}
}),