From daca5a3711851db2a954646c6f7209be996144ff Mon Sep 17 00:00:00 2001 From: Emil Lauridsen Date: Mon, 13 Jan 2020 17:12:14 +0100 Subject: Defer cargo check until after workspace load --- crates/ra_lsp_server/src/main_loop.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/ra_lsp_server') diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index 7a49cad86..844259796 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs @@ -416,6 +416,7 @@ fn loop_turn( if world_state.feature_flags().get("notifications.workspace-loaded") { let msg = format!("workspace loaded, {} rust packages", n_packages); show_message(req::MessageType::Info, msg, &connection.sender); + world_state.check_watcher.update(); } } -- cgit v1.2.3 From c774850fd8d983ad61d333441a5b872aba3884b4 Mon Sep 17 00:00:00 2001 From: Emil Lauridsen Date: Mon, 13 Jan 2020 17:22:21 +0100 Subject: Schedule check update regardless of notification setting --- crates/ra_lsp_server/src/main_loop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_lsp_server') diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index 844259796..84012b99d 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs @@ -416,8 +416,8 @@ fn loop_turn( if world_state.feature_flags().get("notifications.workspace-loaded") { let msg = format!("workspace loaded, {} rust packages", n_packages); show_message(req::MessageType::Info, msg, &connection.sender); - world_state.check_watcher.update(); } + world_state.check_watcher.update(); } if state_changed { -- cgit v1.2.3