mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
parent
dbb62b5baa
commit
b2f2621c17
2 changed files with 2 additions and 1 deletions
|
@ -55,6 +55,7 @@ pub enum ErrorCode {
|
|||
ServerNotInitialized = -32002,
|
||||
UnknownErrorCode = -32001,
|
||||
RequestCancelled = -32800,
|
||||
ContentModified = -32801,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
|
|
|
@ -417,7 +417,7 @@ impl<'a> PoolDispatcher<'a> {
|
|||
if is_canceled(&e) {
|
||||
RawResponse::err(
|
||||
id,
|
||||
ErrorCode::RequestCancelled as i32,
|
||||
ErrorCode::ContentModified as i32,
|
||||
e.to_string(),
|
||||
)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue