Commit a6651a1
committed
fix(vscode): cockpit stale build detection
v0.4.2
The build-status file watchers (pnpm-lock.yaml, requirements.txt,
.git/HEAD, etc.) called refreshStatus() directly, which only
updated the status bar's local snapshot. The cockpit reads
state.buildStatus from the sidebar's state cache and kept showing
the pre-change snapshot — most visibly, a fresh pnpm-lock.yaml
flipped the status bar to "1 stale" while the cockpit's Builds row
still said "all up to date".
Mirror the onDidEndTaskProcess pattern: file-watcher events now
call onBuildComplete (= refreshAll) when available, so the state
cache, cockpit, and status bar pick up the new BuildStatus in
step.
AI-Generated: true
Change-Id: Ia1d9751e6f515ceb2ae7c53dda4eb1cc90248aba1 parent 367a127 commit a6651a1
3 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
195 | | - | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | | - | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| |||
0 commit comments