aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/dispatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rust-analyzer/src/dispatch.rs')
-rw-r--r--crates/rust-analyzer/src/dispatch.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/dispatch.rs b/crates/rust-analyzer/src/dispatch.rs
index baf2199d9..2011a4132 100644
--- a/crates/rust-analyzer/src/dispatch.rs
+++ b/crates/rust-analyzer/src/dispatch.rs
@@ -5,7 +5,7 @@ use serde::{de::DeserializeOwned, Serialize};
5 5
6use crate::{ 6use crate::{
7 global_state::{GlobalState, GlobalStateSnapshot}, 7 global_state::{GlobalState, GlobalStateSnapshot},
8 lsp_utils::is_canceled, 8 lsp_utils::is_cancelled,
9 main_loop::Task, 9 main_loop::Task,
10 LspError, Result, 10 LspError, Result,
11}; 11};
@@ -132,7 +132,7 @@ where
132 Err(e) => match e.downcast::<LspError>() { 132 Err(e) => match e.downcast::<LspError>() {
133 Ok(lsp_error) => lsp_server::Response::new_err(id, lsp_error.code, lsp_error.message), 133 Ok(lsp_error) => lsp_server::Response::new_err(id, lsp_error.code, lsp_error.message),
134 Err(e) => { 134 Err(e) => {
135 if is_canceled(&*e) { 135 if is_cancelled(&*e) {
136 lsp_server::Response::new_err( 136 lsp_server::Response::new_err(
137 id, 137 id,
138 lsp_server::ErrorCode::ContentModified as i32, 138 lsp_server::ErrorCode::ContentModified as i32,