diff options
author | Ville Penttinen <[email protected]> | 2019-03-05 20:25:24 +0000 |
---|---|---|
committer | Ville Penttinen <[email protected]> | 2019-03-05 20:25:24 +0000 |
commit | ce118da149a0db1815f188c9914001608a5ac09e (patch) | |
tree | daab54d43f39cd87f0e92bff56410b2dbb146395 /crates/ra_lsp_server/tests/heavy_tests/support.rs | |
parent | 80347b8187e8cc9f062335bc62643c009e7400d8 (diff) |
Rename feedback to show_message
Diffstat (limited to 'crates/ra_lsp_server/tests/heavy_tests/support.rs')
-rw-r--r-- | crates/ra_lsp_server/tests/heavy_tests/support.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_lsp_server/tests/heavy_tests/support.rs b/crates/ra_lsp_server/tests/heavy_tests/support.rs index 3a7c50309..08f7ad6fd 100644 --- a/crates/ra_lsp_server/tests/heavy_tests/support.rs +++ b/crates/ra_lsp_server/tests/heavy_tests/support.rs | |||
@@ -134,14 +134,14 @@ impl Server { | |||
134 | } | 134 | } |
135 | panic!("no response"); | 135 | panic!("no response"); |
136 | } | 136 | } |
137 | pub fn wait_for_feedback(&self, feedback: &str) { | 137 | pub fn wait_for_message(&self, message: &str) { |
138 | self.wait_for_feedback_n(feedback, 1) | 138 | self.wait_for_message_n(message, 1) |
139 | } | 139 | } |
140 | pub fn wait_for_feedback_n(&self, feedback: &str, n: usize) { | 140 | pub fn wait_for_message_n(&self, message: &str, n: usize) { |
141 | let f = |msg: &RawMessage| match msg { | 141 | let f = |msg: &RawMessage| match msg { |
142 | RawMessage::Notification(n) if n.method == ShowMessage::METHOD => { | 142 | RawMessage::Notification(n) if n.method == ShowMessage::METHOD => { |
143 | let message = n.clone().cast::<req::ShowMessage>().unwrap(); | 143 | let msg = n.clone().cast::<req::ShowMessage>().unwrap(); |
144 | message.message == feedback | 144 | msg.message == message |
145 | } | 145 | } |
146 | _ => false, | 146 | _ => false, |
147 | }; | 147 | }; |