( ctx: ExtensionContext, deps: StatusLineDeps, force = false, )
| 63 | } |
| 64 | |
| 65 | export function updateStatusLine( |
| 66 | ctx: ExtensionContext, |
| 67 | deps: StatusLineDeps, |
| 68 | force = false, |
| 69 | ): void { |
| 70 | const sessionId = resolveSessionId(ctx); |
| 71 | if (!sessionId) return; |
| 72 | const text = renderStatusText(ctx, deps.db, sessionId); |
| 73 | if (!force && lastRenderedBySession.get(sessionId) === text) return; |
| 74 | lastRenderedBySession.set(sessionId, text); |
| 75 | ctx.ui.setStatus(STATUS_KEY, text); |
| 76 | } |
| 77 | |
| 78 | function renderStatusText( |
| 79 | ctx: ExtensionContext, |
no test coverage detected