Skip to content
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

Tabbar Toolbar Update Behavior Inconsistent #8966

Closed
colin-grant-work opened this issue Jan 18, 2021 · 3 comments
Closed

Tabbar Toolbar Update Behavior Inconsistent #8966

colin-grant-work opened this issue Jan 18, 2021 · 3 comments
Labels
bug bugs found in the application toolbar issues related to the toolbar

Comments

@colin-grant-work
Copy link
Contributor

Bug Description:

Tabbar items can be registered with an onDidChange event that causes tabbars to be rerendered. This is successfully carried through in the main toolbars each view area, but toolbars in ViewContainer parts do not update when a change event is fired.

Steps to Reproduce:

  1. Register a toolbar item that includes a didChange event and should appear in a ViewContainer part (for example, one that is attached to part of the debug panel or one that is attached to the file explorer when a plugin contribution (e.g. NPM) is also present).
  2. Hover to reveal the toolbar and fire the command to trigger the didChange event.
  3. Observe that the event does not affect the ViewContainer part toolbar.

Additional Information

before

Observe that the main view toolbar updates, but the ViewContainer part toolbar only updates when it is hidden and then shown again.

  • Operating System: RHEL
  • Theia Version: master
@colin-grant-work
Copy link
Contributor Author

Actually the problem is deeper than I realized, because setting up a ViewContainer's tabbar is handled by ViewContainer.updateTitle but, if it's docked in a side panel, updating for a change event is handled by SidePanelToolbar.updateToolbar and the two give different results, because the ViewContainer knows to look at its own parts, but the SidePanelToolbar is ignorant of the details of the widget occupying the space, so you actually have quite different code getting run.

@vince-fugnitto vince-fugnitto added bug bugs found in the application toolbar issues related to the toolbar labels Jan 19, 2021
@colin-grant-work
Copy link
Contributor Author

colin-grant-work commented Jan 19, 2021

I think that I will let the PR I made (#8967) stand as the fix for the bug described here, and file a separate issue for the weird behavior more generally.

@colin-grant-work
Copy link
Contributor Author

This has been addressed by subsequent work on tabbar toolbar items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application toolbar issues related to the toolbar
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants