summaryrefslogtreecommitdiff
path: root/support/texlab/src/dispatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/src/dispatch.rs')
-rw-r--r--support/texlab/src/dispatch.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/support/texlab/src/dispatch.rs b/support/texlab/src/dispatch.rs
index a080016480..f5659ee3b4 100644
--- a/support/texlab/src/dispatch.rs
+++ b/support/texlab/src/dispatch.rs
@@ -24,9 +24,12 @@ impl NotificationDispatcher {
handler(params)?;
self.not = None;
}
- Err(not) => {
+ Err(lsp_server::ExtractError::MethodMismatch(not)) => {
self.not = Some(not);
}
+ Err(lsp_server::ExtractError::JsonError { .. }) => {
+ self.not = None;
+ }
};
}
Ok(self)
@@ -60,9 +63,12 @@ impl RequestDispatcher {
handler(id, params)?;
self.req = None;
}
- Err(req) => {
+ Err(lsp_server::ExtractError::MethodMismatch(req)) => {
self.req = Some(req);
}
+ Err(lsp_server::ExtractError::JsonError { .. }) => {
+ self.req = None;
+ }
}
}
Ok(self)