aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/server_world.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-25 16:12:27 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-25 16:12:27 +0000
commitdc5ecf446991c65359cf49d52098fcec5f1a1f68 (patch)
treeca0ee39e7f1305019954b3a413a06f9431cb6648 /crates/ra_lsp_server/src/server_world.rs
parent6df1f71b7d0db209978595dc9be496e7f2ef88ec (diff)
parentf6adb85b681c23b64cc33197eb67d5d7fcf920f0 (diff)
Merge #643
643: add gc request r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_lsp_server/src/server_world.rs')
-rw-r--r--crates/ra_lsp_server/src/server_world.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/server_world.rs b/crates/ra_lsp_server/src/server_world.rs
index 5cb97b29b..bf04f1125 100644
--- a/crates/ra_lsp_server/src/server_world.rs
+++ b/crates/ra_lsp_server/src/server_world.rs
@@ -231,6 +231,10 @@ impl ServerWorldState {
231 vfs: Arc::clone(&self.vfs), 231 vfs: Arc::clone(&self.vfs),
232 } 232 }
233 } 233 }
234
235 pub fn collect_garbadge(&mut self) {
236 self.analysis_host.collect_garbage()
237 }
234} 238}
235 239
236impl ServerWorld { 240impl ServerWorld {