swtich lsp server to vfs

This commit is contained in:
Aleksey Kladov 2018-12-19 15:04:15 +03:00
parent 6a755ed83a
commit a5ef8ad05b
14 changed files with 235 additions and 399 deletions

View file

@ -1,4 +1,5 @@
use std::{
fmt,
fs,
path::{Path, PathBuf},
};
@ -20,6 +21,12 @@ pub struct TaskResult {
pub(crate) files: Vec<(RelativePathBuf, String)>,
}
impl fmt::Debug for TaskResult {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("TaskResult { ... }")
}
}
pub(crate) type Worker = thread_worker::Worker<Task, TaskResult>;
pub(crate) fn start() -> (Worker, WorkerHandle) {