aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src/main_loop/mod.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-13 14:35:17 +0100
committerAleksey Kladov <[email protected]>2018-08-13 14:35:17 +0100
commit8ae56fa6d0e8a03d6ad75919d6be953f5fc27083 (patch)
treed93a4f3e1d279a27cc851546796bb488edfe2c65 /crates/server/src/main_loop/mod.rs
parent7fc91f41d8bd948cef3085d7c0d0ec92d1b2bc53 (diff)
Stupid goto definition
Diffstat (limited to 'crates/server/src/main_loop/mod.rs')
-rw-r--r--crates/server/src/main_loop/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/server/src/main_loop/mod.rs b/crates/server/src/main_loop/mod.rs
index e8b24355c..bc898c17b 100644
--- a/crates/server/src/main_loop/mod.rs
+++ b/crates/server/src/main_loop/mod.rs
@@ -26,6 +26,7 @@ use {
26 handle_code_action, 26 handle_code_action,
27 handle_execute_command, 27 handle_execute_command,
28 handle_workspace_symbol, 28 handle_workspace_symbol,
29 handle_goto_definition,
29 }, 30 },
30}; 31};
31 32
@@ -152,6 +153,9 @@ fn on_request(
152 handle_request_on_threadpool::<req::WorkspaceSymbol>( 153 handle_request_on_threadpool::<req::WorkspaceSymbol>(
153 &mut req, pool, world, sender, handle_workspace_symbol, 154 &mut req, pool, world, sender, handle_workspace_symbol,
154 )?; 155 )?;
156 handle_request_on_threadpool::<req::GotoDefinition>(
157 &mut req, pool, world, sender, handle_goto_definition,
158 )?;
155 dispatch::handle_request::<req::ExecuteCommand, _>(&mut req, |params, resp| { 159 dispatch::handle_request::<req::ExecuteCommand, _>(&mut req, |params, resp| {
156 io.send(RawMsg::Response(resp.into_response(Ok(None))?)); 160 io.send(RawMsg::Response(resp.into_response(Ok(None))?));
157 161