Use autoreload config to gate execution rather that staleness

This commit is contained in:
Aleksey Kladov
2021-04-06 13:10:50 +03:00
parent 3698b3eab8
commit e3c47ccefc
2 changed files with 8 additions and 7 deletions

View File

@@ -60,11 +60,7 @@ impl GlobalState {
", "
)
);
if self.config.cargo_autoreload() {
self.fetch_workspaces_request();
} else {
self.transition(Status::NeedsReload);
}
self.fetch_workspaces_request();
fn is_interesting(path: &AbsPath, change_kind: ChangeKind) -> bool {
const IMPLICIT_TARGET_FILES: &[&str] = &["build.rs", "src/main.rs", "src/lib.rs"];