diff options
author | Aleksey Kladov <[email protected]> | 2021-04-06 11:10:50 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-04-06 11:10:50 +0100 |
commit | e3c47ccefca2069da70a9513bc2b7f6fbd0f894c (patch) | |
tree | 05957628c651905e5a242aa355486f4009aa7453 /crates/rust-analyzer/src/reload.rs | |
parent | 3698b3eab870706e6db075b3dcae7f095086c18c (diff) |
Use autoreload config to gate execution rather that staleness
Diffstat (limited to 'crates/rust-analyzer/src/reload.rs')
-rw-r--r-- | crates/rust-analyzer/src/reload.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/rust-analyzer/src/reload.rs b/crates/rust-analyzer/src/reload.rs index a8ae56070..5ff60c22a 100644 --- a/crates/rust-analyzer/src/reload.rs +++ b/crates/rust-analyzer/src/reload.rs | |||
@@ -60,11 +60,7 @@ impl GlobalState { | |||
60 | ", " | 60 | ", " |
61 | ) | 61 | ) |
62 | ); | 62 | ); |
63 | if self.config.cargo_autoreload() { | 63 | self.fetch_workspaces_request(); |
64 | self.fetch_workspaces_request(); | ||
65 | } else { | ||
66 | self.transition(Status::NeedsReload); | ||
67 | } | ||
68 | 64 | ||
69 | fn is_interesting(path: &AbsPath, change_kind: ChangeKind) -> bool { | 65 | fn is_interesting(path: &AbsPath, change_kind: ChangeKind) -> bool { |
70 | const IMPLICIT_TARGET_FILES: &[&str] = &["build.rs", "src/main.rs", "src/lib.rs"]; | 66 | const IMPLICIT_TARGET_FILES: &[&str] = &["build.rs", "src/main.rs", "src/lib.rs"]; |