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

Allow to give commands different alias(display name) for different menus #108719

Closed
jdneo opened this issue Oct 15, 2020 · 5 comments
Closed

Allow to give commands different alias(display name) for different menus #108719

jdneo opened this issue Oct 15, 2020 · 5 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) menus Menu items and widget issues

Comments

@jdneo
Copy link
Member

jdneo commented Oct 15, 2020

Sometimes, the extension author may want to make a command has different display name according to where the command is shown. For example:

A command to run the current active file

  • It can displayed as Run current file in the Command Palette.
  • It can also be simply displayed as Run in the editor context menu.

Currently, we have to register two different commands to display different names for the same functionality.

@jrieken jrieken added *duplicate Issue identified as a duplicate of another issue(s) menus Menu items and widget issues labels Oct 15, 2020
@jrieken
Copy link
Member

jrieken commented Oct 15, 2020

This is a duplicate. Unfortunately, I don't recall the exact issue number nor its title 😳 Anyways, searching for issues with the same labels will likely help you 👉
https://github.com/microsoft/vscode/issues?utf8=✓&q=is%3Aopen+label%3Amenus

@jdneo
Copy link
Member Author

jdneo commented Oct 19, 2020

Hi @jrieken,

I tried to search for it but did not find duplicated one. 😂

@jrieken
Copy link
Member

jrieken commented Oct 19, 2020

hehe - this one: #34048

@jdneo
Copy link
Member Author

jdneo commented Oct 19, 2020

Ah, I should search for command title. (was trying to search with command name, command alias...🙈)

@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) menus Menu items and widget issues
Projects
None yet
Development

No branches or pull requests

3 participants
@jrieken @jdneo and others