I'd like to introduce the following conventions regarding command labels:
Git: Push...., if the command asks for additional input, e.g. Git: Merge....To fix this issue, we need to agree and do the following:
Please note, that this is not about menu items, which might omit the prefix if they are shown in a clear context. E.g. in the git view, it is fine to name the actions Push and Merge....
@svenefftinge, what is the truth? Something... or Something ... I can see both in the application.
+1 for no whitespaces between the label and the ellipses.
Spaces around ellipsis should be the same as inside. No space before ..., if it's not following a comma, cf. apple main menu.
Yes, no space.
The problem is, as @svenefftinge mentionned I think? If we change something to like Git: History it will look good in the command palette but weird in the menu. We could add an optional label to the Command interface like menuLabel or something?
We could add an optional label to the Command interface like menuLabel or something?
One can customize the menu label like this. We did that exactly for in the Git extension.
I'd like to do it as I remember not being sure what label to add to new commands. I suggest we do not add that prefix to Monaco/Editor and Core commands, maybe Workspace too? Maybe Editor: Copy is a bit overkill ? Although I'm always okay with things being more verbose than not. Looking at vscode's command palette it seems Git and other extensions/packages that provide several commands have that prefix, but not core commands.
Also what about commands like Open New Terminal, do you think Terminal: Open New One or just Terminal: Open is good enough?
do you think Terminal: Open New One or just Terminal: Open is good enough?
:) or Terminal: Open New?
This needs more fine tuning or needs to be softened. Some general requirements are
Merge... instead of Git: Merge...Git: Merge... but Terminal: Open is IMHO not better than Open Terminal.Given that it means we need to decide from case to case, I would be fine with just closing this ticket without further action.
Let's close it for now but still merge the PR? I like the addition of ... to the git commands that need further actions.
If a label is shown in a certain context (i.e. context menu of a widget), it can be shorted (omitting that obvious context information). E.g. Merge... instead of Git: Merge...
Maybe, we need an explicit concept as a command category:
${category}: {label}, although I can imagine that Editor prefix can be skipped in the command palette if a current widget is an editor and Git prefix can be skipped for Git submenuin the global places, we can always prefix ${category}: {label}, although I can imagine that Editor prefix can be skipped in the command palette if a current widget is an editor and Git prefix can be skipped for Git submenu
Agreed, and because the editor commands only appear when there is an editor opened, there's not much to change here.
we could introduce conventions based on which menus can decide how a label should be rendered for the given command, e.g. if the last menu segment or menu label matches a command category then just render a label otherwise use a prefixed label
So we define labels inside commands with the prefix, but when we're about to render them we check if that label is prefixed by the menu category. If yes, render the end of it otherwise use the whole label. Is that it? Or you would define another label in the interface? Sorry if I completely misunderstood here!
Most helpful comment
One can customize the menu label like this. We did that exactly for in the Git extension.