diff options
author | Aleksey Kladov <[email protected]> | 2018-12-19 12:04:15 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-20 09:15:38 +0000 |
commit | a5ef8ad05b7c1f7148c59814b55d641fd75aff75 (patch) | |
tree | df6c46378d81dc7cb3242ff7f57d836353bde5ed /crates/ra_vfs/src/io.rs | |
parent | 6a755ed83a583d1f70a5fbcff2d4933b52628cfe (diff) |
swtich lsp server to vfs
Diffstat (limited to 'crates/ra_vfs/src/io.rs')
-rw-r--r-- | crates/ra_vfs/src/io.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/ra_vfs/src/io.rs b/crates/ra_vfs/src/io.rs index 178c9beff..be400bae9 100644 --- a/crates/ra_vfs/src/io.rs +++ b/crates/ra_vfs/src/io.rs | |||
@@ -1,4 +1,5 @@ | |||
1 | use std::{ | 1 | use std::{ |
2 | fmt, | ||
2 | fs, | 3 | fs, |
3 | path::{Path, PathBuf}, | 4 | path::{Path, PathBuf}, |
4 | }; | 5 | }; |
@@ -20,6 +21,12 @@ pub struct TaskResult { | |||
20 | pub(crate) files: Vec<(RelativePathBuf, String)>, | 21 | pub(crate) files: Vec<(RelativePathBuf, String)>, |
21 | } | 22 | } |
22 | 23 | ||
24 | impl fmt::Debug for TaskResult { | ||
25 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||
26 | f.write_str("TaskResult { ... }") | ||
27 | } | ||
28 | } | ||
29 | |||
23 | pub(crate) type Worker = thread_worker::Worker<Task, TaskResult>; | 30 | pub(crate) type Worker = thread_worker::Worker<Task, TaskResult>; |
24 | 31 | ||
25 | pub(crate) fn start() -> (Worker, WorkerHandle) { | 32 | pub(crate) fn start() -> (Worker, WorkerHandle) { |