diff options
author | Roberto Vidal <[email protected]> | 2019-04-13 18:45:21 +0100 |
---|---|---|
committer | Roberto Vidal <[email protected]> | 2019-04-14 09:04:38 +0100 |
commit | 7c7cfc5f04c51ed1e31b6a3091efc3941b3383c2 (patch) | |
tree | 0bc4d2f3afefb504509676388016da52598fe1dd /crates/ra_lsp_server/tests/heavy_tests/support.rs | |
parent | 3507bcb97aaaafba10d55c101bd295f3ab4fed4f (diff) |
Sends cwd info for runnables and code lenses
Diffstat (limited to 'crates/ra_lsp_server/tests/heavy_tests/support.rs')
-rw-r--r-- | crates/ra_lsp_server/tests/heavy_tests/support.rs | 6 |
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 @@ | |||
1 | use std::{ | 1 | use 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 | ||
182 | impl Drop for Server { | 186 | impl Drop for Server { |