Skip to content

feat: add configurable status bar priority setting#3

Merged
j4rviscmd merged 1 commit intomainfrom
feat/statusbar-priority
Mar 13, 2026
Merged

feat: add configurable status bar priority setting#3
j4rviscmd merged 1 commit intomainfrom
feat/statusbar-priority

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

  • Add zaiUsage.statusBarPriority configuration setting (default: 10000) so users can control the position of the z.ai Usage item in the status bar
  • Read the priority value at activation time and pass it to StatusBarItem constructor
  • When zaiUsage.statusBarPriority changes, notify the user with a "Reload Window" prompt since priority is baked in at creation time and cannot be updated at runtime

Changes

src/extension.ts

  • Read zaiUsage.statusBarPriority at activation and pass to createStatusBarItem
  • Add onDidChangeConfiguration handler for statusBarPriority that prompts reload

package.json

  • Add zaiUsage.statusBarPriority property schema (type: number, default: 10000)

Motivation

Fixes #2 — enables the z.ai Usage status bar item to be positioned adjacent to vscode-copilot-usage by aligning priority values. The default 10000 is chosen to avoid collision with commonly-used priority values.

@j4rviscmd j4rviscmd added the enhancement New feature or request label Mar 13, 2026
Add zaiUsage.statusBarPriority configuration to allow users to control
the position of the z.ai Usage item in the status bar. The priority is
read at activation time and applied to the StatusBarItem constructor.
When the setting changes, the user is prompted to reload the window since
priority cannot be updated at runtime.
@j4rviscmd j4rviscmd force-pushed the feat/statusbar-priority branch from 9563e75 to 4935ea4 Compare March 13, 2026 08:45
@j4rviscmd j4rviscmd merged commit 6f5f354 into main Mar 13, 2026
4 checks passed
@j4rviscmd j4rviscmd deleted the feat/statusbar-priority branch March 13, 2026 08:48
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.

ステータスバー表示位置を vscode-copilot-usage と隣り合わせにする

1 participant