Skip to content

Add feature of displaying balance in the status bar - #198

Open
t0ny-peng wants to merge 4 commits into
Vizards:mainfrom
t0ny-peng:main
Open

Add feature of displaying balance in the status bar#198
t0ny-peng wants to merge 4 commits into
Vizards:mainfrom
t0ny-peng:main

Conversation

@t0ny-peng

Copy link
Copy Markdown

I often have to monitor my balance of deepseek, thus created this PR with Claude. Verified locally and it works.
image

t0ny-peng and others added 4 commits July 14, 2026 21:28
During VS Code shutdown the extension host RPC channel tears down before
`selectChatModels` resolves, producing a noisy but harmless warning.
CancellationError in this path is expected; only log genuine failures.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds `DeepSeek: Check Balance` to the Command Palette. It fetches
/user/balance with the configured API key, shows a progress notification
while loading, then displays each currency entry (total, paid, free) in
an information message. Shows a warning if no key is set or the account
returns no data.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Shows the account balance (e.g. ⚡ ¥110.00) in the right status bar.
Clicking it refreshes in place. Auto-refresh interval is configurable
via `deepseek-copilot.balanceRefreshInterval` (minutes, default 10;
set to 0 to disable). Changes to the setting take effect immediately
without reloading VS Code.

`DeepSeek: Toggle Balance Display` in the Command Palette shows/hides
the item; the preference is persisted in globalState across restarts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant