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