aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_vfs/src/io.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-12-19 12:04:15 +0000
committerAleksey Kladov <[email protected]>2018-12-20 09:15:38 +0000
commita5ef8ad05b7c1f7148c59814b55d641fd75aff75 (patch)
treedf6c46378d81dc7cb3242ff7f57d836353bde5ed /crates/ra_vfs/src/io.rs
parent6a755ed83a583d1f70a5fbcff2d4933b52628cfe (diff)
swtich lsp server to vfs
Diffstat (limited to 'crates/ra_vfs/src/io.rs')
-rw-r--r--crates/ra_vfs/src/io.rs7
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 @@
1use std::{ 1use 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
24impl fmt::Debug for TaskResult {
25 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
26 f.write_str("TaskResult { ... }")
27 }
28}
29
23pub(crate) type Worker = thread_worker::Worker<Task, TaskResult>; 30pub(crate) type Worker = thread_worker::Worker<Task, TaskResult>;
24 31
25pub(crate) fn start() -> (Worker, WorkerHandle) { 32pub(crate) fn start() -> (Worker, WorkerHandle) {