aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-10-20 19:52:49 +0100
committerAleksey Kladov <[email protected]>2018-10-20 19:52:49 +0100
commitc4b0d3cd56ab68f4fa23f7c1f6c76f7f6148153e (patch)
tree90b7472979686314ca041dfe5ee7f95277827f9d /crates/ra_lsp_server/src/main_loop
parent61518580ed60bb16edcd4fb7200d0b564b5ee9e9 (diff)
make parent module cancelable
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs
index 639fe4553..b0b983d0c 100644
--- a/crates/ra_lsp_server/src/main_loop/handlers.rs
+++ b/crates/ra_lsp_server/src/main_loop/handlers.rs
@@ -238,7 +238,7 @@ pub fn handle_parent_module(
238) -> Result<Vec<Location>> { 238) -> Result<Vec<Location>> {
239 let file_id = params.try_conv_with(&world)?; 239 let file_id = params.try_conv_with(&world)?;
240 let mut res = Vec::new(); 240 let mut res = Vec::new();
241 for (file_id, symbol) in world.analysis().parent_module(file_id) { 241 for (file_id, symbol) in world.analysis().parent_module(file_id)? {
242 let line_index = world.analysis().file_line_index(file_id); 242 let line_index = world.analysis().file_line_index(file_id);
243 let location = to_location(file_id, symbol.node_range, &world, &line_index)?; 243 let location = to_location(file_id, symbol.node_range, &world, &line_index)?;
244 res.push(location); 244 res.push(location);