feat: add configurable status bar priority setting#3
Merged
Conversation
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.
9563e75 to
4935ea4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
zaiUsage.statusBarPriorityconfiguration setting (default:10000) so users can control the position of the z.ai Usage item in the status barStatusBarItemconstructorzaiUsage.statusBarPrioritychanges, notify the user with a "Reload Window" prompt since priority is baked in at creation time and cannot be updated at runtimeChanges
src/extension.tszaiUsage.statusBarPriorityat activation and pass tocreateStatusBarItemonDidChangeConfigurationhandler forstatusBarPrioritythat prompts reloadpackage.jsonzaiUsage.statusBarPriorityproperty 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
10000is chosen to avoid collision with commonly-used priority values.