Skip to content

Commit 7223285

Browse files
committed
fix: use async wrapper for updateTokenStats to return Promise<void>
void operator returns undefined, not Promise<void>. Use async/await to properly satisfy the BackendFacadeDeps signature.
1 parent f73d904 commit 7223285

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vscode-extension/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7844,7 +7844,7 @@ export async function activate(context: vscode.ExtensionContext) {
78447844
context,
78457845
log: (m: string) => tokenTracker.log(m),
78467846
warn: (m: string) => tokenTracker.warn(m),
7847-
updateTokenStats: () => void tokenTracker.updateTokenStats(),
7847+
updateTokenStats: async () => { await tokenTracker.updateTokenStats(); },
78487848
calculateEstimatedCost: (modelUsage: ModelUsage) => tokenTracker.calculateEstimatedCost(modelUsage),
78497849

78507850

0 commit comments

Comments
 (0)