Skip to content

Commit 75d7183

Browse files
committed
Fix #212 stale gutter, anyTargetChanged->true
Comment out implementation and have anyTargetChanged always return true. Holding off on deleting the function entirely, in case it needs to be brought back in the immediate future.
1 parent eaf2db1 commit 75d7183

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

src/worker/builder.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -361,15 +361,16 @@ export function staleFiles(step: BuildStep, targets: string[]) {
361361
}
362362

363363
export function anyTargetChanged(step: BuildStep, targets: string[]) {
364-
if (!step.maxts) throw Error("call populateFiles() first");
365-
// see if any target files are more recent than inputs
366-
for (var i = 0; i < targets.length; i++) {
367-
var entry = store.workfs[targets[i]];
368-
if (!entry || entry.ts > step.maxts)
369-
return true;
370-
}
371-
console.log("unchanged", step.maxts, targets);
372-
return false;
364+
// if (!step.maxts) throw Error("call populateFiles() first");
365+
// // see if any target files are more recent than inputs
366+
// for (var i = 0; i < targets.length; i++) {
367+
// var entry = store.workfs[targets[i]];
368+
// if (!entry || entry.ts > step.maxts)
369+
// return true;
370+
// }
371+
// console.log("unchanged", step.maxts, targets);
372+
// return false;
373+
return true; // always rebuild to keep gutter in sync with source lines
373374
}
374375

375376
export function fixParamsWithDefines(path: string, params) {

0 commit comments

Comments
 (0)