You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that your extension is a consumer of the createStatusBarItem API.
Here is an example how using the new API will improve the user experience around managing status bar items:
Without id / name right clicking on the status bar item from your extension will show a generic label that is just the name of the extension:
As you can see from the example above, the GH Pull Request extension did not yet adopt this new API and as such, the menu only shows a generic entry (as opposed to the other entries that are more specific).
Another motivation to adopt this new API is that it will enable a user to selectively hide/show status bar entries from your extension in case you register more than one status bar item.
An adoption of the new API involves:
configuring "engines": { "vscode": "^1.57.0" } in package.json
where createStatusBarItem is called, add a unique id: string property as first parameter
in the returned StatusBarItem set name to something that describes the intent of the status bar entry (if you provide multiple status bar entries, make sure the name is different for each entry)
Thanks for the support and the great work! ❤️
The text was updated successfully, but these errors were encountered:
@JoeRobich looking at the changes, please also make sure you pass a id: string as first arg to the createStatusBarItem call. Make sure it is different for each status bar item you contribute. It does not have to be universally unique, we automatically add the extension identifier internally.
👋 Hi there, Ben here, from the VS Code team.
We just released VSCode 1.57 that landed a new stable API for status bar items to provide
id
andname
properties: https://code.visualstudio.com/updates/v1_57#_status-bar-item-id-and-name-propertiesI noticed that your extension is a consumer of the
createStatusBarItem
API.Here is an example how using the new API will improve the user experience around managing status bar items:
Without
id
/name
right clicking on the status bar item from your extension will show a generic label that is just the name of the extension:As you can see from the example above, the GH Pull Request extension did not yet adopt this new API and as such, the menu only shows a generic entry (as opposed to the other entries that are more specific).
Another motivation to adopt this new API is that it will enable a user to selectively hide/show status bar entries from your extension in case you register more than one status bar item.
An adoption of the new API involves:
"engines": { "vscode": "^1.57.0" }
inpackage.json
createStatusBarItem
is called, add a uniqueid: string
property as first parameterStatusBarItem
setname
to something that describes the intent of the status bar entry (if you provide multiple status bar entries, make sure the name is different for each entry)Thanks for the support and the great work! ❤️
The text was updated successfully, but these errors were encountered: