diff options
| author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-20 09:16:07 +0000 |
|---|---|---|
| committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-20 09:16:07 +0000 |
| commit | 9a16cf2bf646a4a881f3f5acbf5582dacc4337bf (patch) | |
| tree | ff90eb390a8f5af47b6d0c6ec4c49b4431b82d1c /crates/ra_lsp_server/tests/heavy_tests | |
| parent | dbb62b5baa36783bbca06f09c77794fce3ceff0c (diff) | |
| parent | a084412f0698d5f54d586f707930e141c88b0673 (diff) | |
Merge #292
292: Vfs r=matklad a=matklad
closes #243
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_lsp_server/tests/heavy_tests')
| -rw-r--r-- | crates/ra_lsp_server/tests/heavy_tests/main.rs | 3 | ||||
| -rw-r--r-- | crates/ra_lsp_server/tests/heavy_tests/support.rs | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/crates/ra_lsp_server/tests/heavy_tests/main.rs b/crates/ra_lsp_server/tests/heavy_tests/main.rs index 26f5e3f20..029a55d40 100644 --- a/crates/ra_lsp_server/tests/heavy_tests/main.rs +++ b/crates/ra_lsp_server/tests/heavy_tests/main.rs | |||
| @@ -1,9 +1,7 @@ | |||
| 1 | mod support; | 1 | mod support; |
| 2 | 2 | ||
| 3 | use serde_json::json; | 3 | use serde_json::json; |
| 4 | |||
| 5 | use ra_lsp_server::req::{Runnables, RunnablesParams, CodeActionRequest, CodeActionParams}; | 4 | use ra_lsp_server::req::{Runnables, RunnablesParams, CodeActionRequest, CodeActionParams}; |
| 6 | |||
| 7 | use languageserver_types::{Position, Range, CodeActionContext}; | 5 | use languageserver_types::{Position, Range, CodeActionContext}; |
| 8 | 6 | ||
| 9 | use crate::support::project; | 7 | use crate::support::project; |
| @@ -20,6 +18,7 @@ fn foo() { | |||
| 20 | } | 18 | } |
| 21 | ", | 19 | ", |
| 22 | ); | 20 | ); |
| 21 | server.wait_for_feedback("workspace loaded"); | ||
| 23 | server.request::<Runnables>( | 22 | server.request::<Runnables>( |
| 24 | RunnablesParams { | 23 | RunnablesParams { |
| 25 | text_document: server.doc_id("lib.rs"), | 24 | text_document: server.doc_id("lib.rs"), |
diff --git a/crates/ra_lsp_server/tests/heavy_tests/support.rs b/crates/ra_lsp_server/tests/heavy_tests/support.rs index 07a878a26..c14d287ca 100644 --- a/crates/ra_lsp_server/tests/heavy_tests/support.rs +++ b/crates/ra_lsp_server/tests/heavy_tests/support.rs | |||
| @@ -174,11 +174,11 @@ impl Server { | |||
| 174 | impl Drop for Server { | 174 | impl Drop for Server { |
| 175 | fn drop(&mut self) { | 175 | fn drop(&mut self) { |
| 176 | self.send_request::<Shutdown>(666, ()); | 176 | self.send_request::<Shutdown>(666, ()); |
| 177 | let receiver = self.worker.take().unwrap().stop(); | 177 | let receiver = self.worker.take().unwrap().shutdown(); |
| 178 | while let Some(msg) = recv_timeout(&receiver) { | 178 | while let Some(msg) = recv_timeout(&receiver) { |
| 179 | drop(msg); | 179 | drop(msg); |
| 180 | } | 180 | } |
| 181 | self.watcher.take().unwrap().stop().unwrap(); | 181 | self.watcher.take().unwrap().shutdown().unwrap(); |
| 182 | } | 182 | } |
| 183 | } | 183 | } |
| 184 | 184 | ||
