-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toolbar items should be enabled/visible according to when-clause-contexts #11705
Comments
Would you prefer that the toolbar item be invisible, or visible but marked inactive? |
For the interested implementer, the points of reference are these: theia/packages/toolbar/src/browser/toolbar.tsx Lines 264 to 297 in 22a5f7e
theia/packages/core/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar.tsx Lines 107 to 140 in 22a5f7e
|
@colin-grant-work Thanks for your feedback! |
I would like to work on this. Could someone assign me? |
Feature Description:
The

TabBarToolbarItem
interface for items for the the main toolbar offers an optionalwhen
property, that is supposed to accept when-clause-contexts.This can be set, but it has no impact on the toolbar item.
Also, editing the user's
toolbar.json
directly in the application does not allow to set such a clause:I would like to see items to be enabled/visible only if the
when
clause returnstrue
(e.g. only show item if the workbench has a valid workspace:when: 'workbenchState != empty'
).The text was updated successfully, but these errors were encountered: