diff options
author | Aleksey Kladov <[email protected]> | 2019-06-07 18:49:29 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-06-12 11:36:24 +0100 |
commit | fed52706def9a9f5d33edc7dd9848a02ae475ba5 (patch) | |
tree | be508002355e87b97bd98a64f1678f431ed4b3ae /crates/ra_lsp_server/src/main_loop.rs | |
parent | 15668119de40b97011a1f2e2d065d11f25a5833a (diff) |
make LRU cache configurable
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop.rs')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index 090fb9b1b..0790ea472 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs | |||
@@ -73,7 +73,7 @@ pub fn main_loop( | |||
73 | loaded_workspaces | 73 | loaded_workspaces |
74 | }; | 74 | }; |
75 | 75 | ||
76 | let mut state = WorldState::new(ws_roots, workspaces); | 76 | let mut state = WorldState::new(ws_roots, workspaces, options.lru_capacity); |
77 | 77 | ||
78 | let pool = ThreadPool::new(THREADPOOL_SIZE); | 78 | let pool = ThreadPool::new(THREADPOOL_SIZE); |
79 | let (task_sender, task_receiver) = unbounded::<Task>(); | 79 | let (task_sender, task_receiver) = unbounded::<Task>(); |