diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-11 15:06:26 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-11 15:06:26 +0000 |
commit | 7f0ba043dcc0126721b88ff0e6a96069b045de07 (patch) | |
tree | 0d36b4b4d3f1f8f6d788c24a6b2089178619c81d /crates/ra_lsp_server/src/main_loop.rs | |
parent | 5202b0ecbaab2d44e886828f0e30dee67fad0c5c (diff) | |
parent | fcccf8ec59420d20edc53f7d787f2412e297f5fe (diff) |
Merge #2526
2526: Support LSP 3.15 r=matklad a=kjeremy
This merely upgrades our protocol support. It does not add any of the new features.
Co-authored-by: Jeremy Kolb <[email protected]>
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop.rs')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index 83845f1e0..158cac0be 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs | |||
@@ -520,7 +520,8 @@ fn on_notification( | |||
520 | if let Some(file_id) = state.vfs.write().remove_file_overlay(path.as_path()) { | 520 | if let Some(file_id) = state.vfs.write().remove_file_overlay(path.as_path()) { |
521 | subs.remove_sub(FileId(file_id.0)); | 521 | subs.remove_sub(FileId(file_id.0)); |
522 | } | 522 | } |
523 | let params = req::PublishDiagnosticsParams { uri, diagnostics: Vec::new() }; | 523 | let params = |
524 | req::PublishDiagnosticsParams { uri, diagnostics: Vec::new(), version: None }; | ||
524 | let not = notification_new::<req::PublishDiagnostics>(params); | 525 | let not = notification_new::<req::PublishDiagnostics>(params); |
525 | msg_sender.send(not.into()).unwrap(); | 526 | msg_sender.send(not.into()).unwrap(); |
526 | return Ok(()); | 527 | return Ok(()); |