diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-30 21:57:08 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-30 21:57:08 +0000 |
commit | c3d74744cdae29aa6a6bfa0cd7ab64b8b251e287 (patch) | |
tree | bf53aac74110d30eba6da346e764e003ffd8b9c4 /crates | |
parent | 17dda0972a68dd88a766c223390317dc2cb3ea00 (diff) | |
parent | cdd7118cbf23e21c376092b3b2734407004b8dbf (diff) |
Merge #2694
2694: Refactor inlay hints r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop.rs | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index af1a487de..4336583fe 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs | |||
@@ -709,16 +709,11 @@ where | |||
709 | Ok(lsp_error) => Response::new_err(id, lsp_error.code, lsp_error.message), | 709 | Ok(lsp_error) => Response::new_err(id, lsp_error.code, lsp_error.message), |
710 | Err(e) => { | 710 | Err(e) => { |
711 | if is_canceled(&e) { | 711 | if is_canceled(&e) { |
712 | // FIXME: When https://github.com/Microsoft/vscode-languageserver-node/issues/457 | 712 | Response::new_err( |
713 | // gets fixed, we can return the proper response. | 713 | id, |
714 | // This works around the issue where "content modified" error would continuously | 714 | ErrorCode::ContentModified as i32, |
715 | // show an message pop-up in VsCode | 715 | "content modified".to_string(), |
716 | // Response::err( | 716 | ) |
717 | // id, | ||
718 | // ErrorCode::ContentModified as i32, | ||
719 | // "content modified".to_string(), | ||
720 | // ) | ||
721 | Response::new_ok(id, ()) | ||
722 | } else { | 717 | } else { |
723 | Response::new_err(id, ErrorCode::InternalError as i32, e.to_string()) | 718 | Response::new_err(id, ErrorCode::InternalError as i32, e.to_string()) |
724 | } | 719 | } |