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

StatusBarItem - add support for specifying a list of commands in the hover #234339

Open
lszomoru opened this issue Nov 21, 2024 · 1 comment
Open
Assignees
Labels
api feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities workbench-status Status bar
Milestone

Comments

@lszomoru
Copy link
Member

It would be nice if extensions would be able to specify a list of commands which would then be passed on to the HoverService so that they are rendered in the hover status bar.

@lszomoru lszomoru added the feature-request Request for new features or functionality label Nov 21, 2024
@bpasero bpasero added this to the On Deck milestone Nov 21, 2024
@bpasero
Copy link
Member

bpasero commented Nov 21, 2024

This needs to set the related actions options when creating the hover:

this.hover = this._register(this.hoverService.setupManagedHover(this.hoverDelegate, this.container, hoverContents));

actions?: IHoverAction[];

I would think this could be proposed new API for the status bar item to have an overload for tooltip:

tooltip: string | MarkdownString | undefined;

Something like:

tooltip: string | MarkdownString | { actions: Command[], content: string | MarkDownString } | undefined

If someone wants to contribute this, opening for help wanted 👍

@bpasero bpasero added the help wanted Issues identified as good community contribution opportunities label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities workbench-status Status bar
Projects
None yet
Development

No branches or pull requests

2 participants