aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/tests/heavy_tests/support.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_lsp_server/tests/heavy_tests/support.rs')
-rw-r--r--crates/ra_lsp_server/tests/heavy_tests/support.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/tests/heavy_tests/support.rs b/crates/ra_lsp_server/tests/heavy_tests/support.rs
index 4ea6760a1..9e115fb7f 100644
--- a/crates/ra_lsp_server/tests/heavy_tests/support.rs
+++ b/crates/ra_lsp_server/tests/heavy_tests/support.rs
@@ -1,7 +1,7 @@
1use std::{ 1use std::{
2 cell::{Cell, RefCell}, 2 cell::{Cell, RefCell},
3 fs, 3 fs,
4 path::PathBuf, 4 path::{Path, PathBuf},
5 sync::Once, 5 sync::Once,
6 time::Duration, 6 time::Duration,
7}; 7};
@@ -177,6 +177,10 @@ impl Server {
177 fn send_notification(&self, not: RawNotification) { 177 fn send_notification(&self, not: RawNotification) {
178 self.worker.as_ref().unwrap().sender().send(RawMessage::Notification(not)).unwrap(); 178 self.worker.as_ref().unwrap().sender().send(RawMessage::Notification(not)).unwrap();
179 } 179 }
180
181 pub fn path(&self) -> &Path {
182 self.dir.path()
183 }
180} 184}
181 185
182impl Drop for Server { 186impl Drop for Server {