-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add 'title' for widgets in the sidebar #5948
Conversation
We need to test it with plugin system adding views to the explorer and then toggle between single and multi view modes to check that captions look good in all cases. |
How can I test that case? The same way described in your PR #5665 ? |
yes, you can adjust the sample extension to contribute to the explorer The view container goes in the single view mode if only one view is visible, so just hide others. In the multi view mode, the caption should not contain any additional info, since it is not clear from which view is coming from, but the caption of view part for the explorer should have. Please see how the view part widget title is used to be a title for view part header and view container toolbar in the multi and single view mode correspondingly. The caption should follow the same pattern. |
I tested using the Multi-View (Explorer + JSON Outline) Single-View (Explorer Only) |
@vince-fugnitto What do you see when you hover over |
The panels don't display an individual title, should we add them for those items as well? |
I thought it was the issue that @lmcbout wanted to see the path whenever he hovers over the project root as it was before? |
Yes that's true, apparently I only handle the case of displaying the path when there is a single-view, but I should also do something similar for when it's in a multi-view. |
Basically and then everything should work |
What will be fixed or work if we set the caption at this point? |
@vince-fugnitto you are right, we should set There is be a bug in the view part that we only display title label ignoring the caption: https://github.com/theia-ide/theia/blob/a878bbfe0085393bac144995788cac8f25a6e64a/packages/core/src/browser/view-container.ts#L846-L850 I think if we should use the caption here as well as a caption for the view part header. |
- added `title` to widgets present in the sidebar by using the widget's caption. - added `caption` title to view containers. - adjusted the `explorer` to display the workpace uri path when hovering over the widget's title. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
f98fd83
to
ae5047b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vince-fugnitto I've tested in single root and multi-root workspaces. It works well!
@akosyakov should I let it sit for a day? :) |
@vince-fugnitto we have not agreed on such things and did not document it anywhere, so no for now :) and with current review activity, doubt that somebody else will have a look |
Okay sounds good, thank you for the help and review I appreciate it! :) |
What it does
title
to widgets present in the sidebar by using the widget's caption.explorer
to display the workpace uri path when hovering overthe widget's title.
Examples: (when hovering the title)
How to test
explorer
title should display the workspace uri path when in a single-rootReview checklist
Reminder for reviewers
Signed-off-by: Vincent Fugnitto vincent.fugnitto@ericsson.com