From 0f493fecc71d4fae5c43221ccd8ecbd42bda40a1 Mon Sep 17 00:00:00 2001 From: Fred Sauer Date: Tue, 10 Mar 2026 22:08:22 -0700 Subject: [PATCH] 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. --- src/worker/builder.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/worker/builder.ts b/src/worker/builder.ts index 99787948e..8f75487af 100644 --- a/src/worker/builder.ts +++ b/src/worker/builder.ts @@ -361,15 +361,16 @@ export function staleFiles(step: BuildStep, targets: string[]) { } export function anyTargetChanged(step: BuildStep, targets: string[]) { - if (!step.maxts) throw Error("call populateFiles() first"); - // see if any target files are more recent than inputs - for (var i = 0; i < targets.length; i++) { - var entry = store.workfs[targets[i]]; - if (!entry || entry.ts > step.maxts) - return true; - } - console.log("unchanged", step.maxts, targets); - return false; + // if (!step.maxts) throw Error("call populateFiles() first"); + // // see if any target files are more recent than inputs + // for (var i = 0; i < targets.length; i++) { + // var entry = store.workfs[targets[i]]; + // if (!entry || entry.ts > step.maxts) + // return true; + // } + // console.log("unchanged", step.maxts, targets); + // return false; + return true; // always rebuild to keep gutter in sync with source lines } export function fixParamsWithDefines(path: string, params) {