feat(ui): show session cost in VS Code context usage readout (#2991)

Share the desktop session-card currency formatter (lib/money.ts) and surface
the current session's cost in the extension chat-header context usage tooltip.
This commit is contained in:
Yun Feng
2026-08-19 00:34:23 +03:00
committed by GitHub
parent 47525c0cf5
commit 36ce73f753
16 changed files with 58 additions and 11 deletions
+2
View File
@@ -1403,10 +1403,12 @@ export const dict: Record<I18nKey, string> = {
"contextUsage.mobile.usedTokens": "Використані токени",
"contextUsage.mobile.contextLimit": "Обмеження контексту",
"contextUsage.mobile.outputLimit": "Ліміт виводу",
"contextUsage.mobile.cost": "Вартість",
"contextUsage.mobile.usage": "Використання",
"contextUsage.tooltip.usedTokens": "Використані токени: {tokens}",
"contextUsage.tooltip.contextLimit": "Обмеження контексту: {tokens}",
"contextUsage.tooltip.outputLimit": "Ліміт виводу: {tokens}",
"contextUsage.tooltip.cost": "Вартість: {cost}",
"contextSidebar.session.untitled": "Сесія без назви",
"contextSidebar.empty.openSession": "Відкрийте сесію, щоб перевірити контекст.",
"contextSidebar.section.context": "Контекст",