From a5ef8ad05b7c1f7148c59814b55d641fd75aff75 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 19 Dec 2018 15:04:15 +0300 Subject: swtich lsp server to vfs --- crates/thread_worker/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/thread_worker/src') diff --git a/crates/thread_worker/src/lib.rs b/crates/thread_worker/src/lib.rs index 24d7fcce1..12e8bf17e 100644 --- a/crates/thread_worker/src/lib.rs +++ b/crates/thread_worker/src/lib.rs @@ -37,6 +37,9 @@ impl Worker { pub fn send(&self, item: I) { self.inp.send(item) } + pub fn recv(&self) -> Option { + self.out.recv() + } } impl WorkerHandle { -- cgit v1.2.3