(channel)
| 2323 | // exactly how activation-request targets get re-evaluated — silently |
| 2324 | // overwriting latestSnapshot here swallowed their focus transition, so |
| 2325 | // onFocus never fired and the config never raised them in the stack. |
| 2326 | const focusChanged = entry.latestSnapshot.isFocused !== snapshot.isFocused; |
| 2327 | entry.latestSnapshot = snapshot; |
| 2328 | updated = entry.cache.update(snapshot); |
| 2329 | if (focusChanged) { |
| 2330 | events.emitFocus(entry.cache.window, snapshot.isFocused); |
| 2331 | } |
| 2332 | debugLabel("evaluate-cached-update-snapshot", { |
| 2333 | windowId, |
| 2334 | snapshotTitle: snapshot.title, |
| 2335 | windowTitle: entry.cache.window.title.peek(), |
| 2336 | updated: updated !== null, |
| 2337 | labels: updated |
| 2338 | ? summarizeSerializedLabels(updated.serialized) |
| 2339 | : undefined, |
| 2340 | }); |
no test coverage detected