Skip to content

feat: add display mode toggle for usage (used/remaining)#23

Merged
j4rviscmd merged 2 commits intomainfrom
feat/usage-display-toggle
Mar 16, 2026
Merged

feat: add display mode toggle for usage (used/remaining)#23
j4rviscmd merged 2 commits intomainfrom
feat/usage-display-toggle

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

Add a new display mode setting to toggle between showing used amount or remaining amount in the status bar.

Features

  • displayMode configuration: New setting with "used" (default) or "remaining" options
  • Toggle command: copilotUsage.toggleDisplayMode to quickly switch between modes
  • Dynamic tooltip: Shows "(used: X/Y)" or "(remaining: X/Y)" based on current mode

Changes

  • Add copilotUsage.displayMode setting in package.json
  • Add copilotUsage.toggleDisplayMode command
  • Update updateStatusBar() to calculate and display remaining percentage when in "remaining" mode
  • Update tooltip to clearly show which mode is active

Behavior

  • Used mode (default): Shows usage percentage (e.g., "56%") with tooltip "(used: 169/300)"
  • Remaining mode: Shows remaining percentage (e.g., "44%") with tooltip "(remaining: 131/300)"

The default behavior remains unchanged (showing used amount) to maintain backward compatibility.

Add a new setting to toggle between displaying used amount or remaining amount in the status bar.

- Add copilotUsage.displayMode setting (used/remaining)
- Add copilotUsage.toggleDisplayMode command
- Update tooltip to show (used: X/Y) or (remaining: X/Y) based on mode
- Default is 'used' to maintain current behavior
@j4rviscmd j4rviscmd added the enhancement New feature or request label Mar 16, 2026
@j4rviscmd j4rviscmd merged commit 9089230 into main Mar 16, 2026
4 checks passed
@j4rviscmd j4rviscmd deleted the feat/usage-display-toggle branch March 16, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant