Use autoreload config to gate execution rather that staleness
This commit is contained in:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user