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

No custom hover for menu-only layout control #153429

Closed
jrieken opened this issue Jun 28, 2022 · 3 comments · Fixed by #155278 or #156621
Closed

No custom hover for menu-only layout control #153429

jrieken opened this issue Jun 28, 2022 · 3 comments · Fixed by #155278 or #156621
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders titlebar VS Code main title bar issues verified Verification succeeded
Milestone

Comments

@jrieken
Copy link
Member

jrieken commented Jun 28, 2022

re #150788

"workbench.layoutControl.enabled": true,
"workbench.layoutControl.type": "menu",
  • use the config above
  • hover over the layout control
  • 🐛 native hover
  • (any other value for .type uses the custom hover)
@sbatten sbatten added bug Issue identified by VS Code Team member as probable bug titlebar VS Code main title bar issues labels Jun 28, 2022
@sbatten sbatten added this to the June 2022 milestone Jun 28, 2022
@sbatten
Copy link
Member

sbatten commented Jun 29, 2022

This is actually because the SubmenuEntryActionViewItem extends BaseActionViewItem whereas the MenuEntryActionViewItem extends ActionViewItem.

ActionViewItem is what provides the custom hover capability.

Here is a quick summary of the ActionViewItem structure:

MenuEntryActionViewItem
ActionViewItem (handles hover delegate)
BaseActionViewItem (IActionViewItem)
Disposable

SubmenuEntryActionViewItem
DropdownMenuActionViewItem
BaseActionViewItem (IActionViewItem)
Disposable


**extends ActionViewItem**
ActionWithDropdownActionViewItem
MenuSeparatorActionViewItem
MenuEntryActionViewItem
ReactionActionViewItem
DropDownMenuActionViewItem
ToggleMultilineActionViewItem
QuickFixActionViewItem
NotebooKernelActionViewItem
StatusBarActionViewItem

**extends BaseActionViewItem**
ActionViewItem
SelectActionViewItem
DropdownMenuActionViewItem
BaseMenuActionViewItem
ToggleActionViewItem
DropdownWithPrimaryActionViewItem
DropdownWithDefaultActionViewItem
ActivityActionViewItem
StartDebugActionViewItem
ReplFilterActionViewItem
MarkersFilterActionViewItem
FolderSettingsActionViewItem
TestingExplorerFilter

There is no clear guidance on how to use these aside from the very recommended approach of using createActionViewItem when using a toolbar/actionbar. Ideally we could move to only one "BaseActionViewItem", then several reusable widgets that extend that.

image

@sbatten sbatten modified the milestones: June 2022, July 2022 Jun 29, 2022
@jrieken jrieken self-assigned this Jul 15, 2022
@vscodenpa vscodenpa added the unreleased Patch has not yet been released in VS Code Insiders label Jul 15, 2022
@jrieken
Copy link
Member Author

jrieken commented Jul 15, 2022

ActionViewItem is what provides the custom hover capability.

I have changed that (which closed this issue) but I am also in for making this all simpler. Something tells me that we should have a higher level (workbench, platform) "toolbar controller" that you just create a for a menu (id). Internally it would use the lower level widgets but it would do all the lifting and glue that today various util-functions do

@vscodenpa vscodenpa added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Jul 18, 2022
@sandy081
Copy link
Member

I still see native hover. I assume this is not expected.

image

@sandy081 sandy081 reopened this Jul 28, 2022
@sandy081 sandy081 added the verification-found Issue verification failed label Jul 28, 2022
@vscodenpa vscodenpa removed the insiders-released Patch has been released in VS Code Insiders label Jul 28, 2022
sbatten added a commit that referenced this issue Jul 28, 2022
sbatten added a commit that referenced this issue Jul 28, 2022
@vscodenpa vscodenpa added the unreleased Patch has not yet been released in VS Code Insiders label Jul 28, 2022
@sbatten sbatten removed the verification-found Issue verification failed label Jul 28, 2022
@vscodenpa vscodenpa added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Jul 29, 2022
@andreamah andreamah added the verified Verification succeeded label Jul 29, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders titlebar VS Code main title bar issues verified Verification succeeded
Projects
None yet
5 participants