minor: bump lsp-server version
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
//! See [RequestDispatcher].
|
||||
use std::{fmt, panic, thread};
|
||||
|
||||
use lsp_server::ExtractError;
|
||||
use serde::{de::DeserializeOwned, Serialize};
|
||||
|
||||
use crate::{
|
||||
@@ -234,7 +235,10 @@ impl<'a> NotificationDispatcher<'a> {
|
||||
};
|
||||
let params = match not.extract::<N::Params>(N::METHOD) {
|
||||
Ok(it) => it,
|
||||
Err(not) => {
|
||||
Err(ExtractError::JsonError { method, error }) => {
|
||||
panic!("Invalid request\nMethod: {method}\n error: {error}",)
|
||||
}
|
||||
Err(ExtractError::MethodMismatch(not)) => {
|
||||
self.not = Some(not);
|
||||
return Ok(self);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user