-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Developer command palette entries should always be at the bottom #25915
Comments
@bpasero could it not be strict alphabetical sorting with the exception of "Developer" prefixed commands which are always at the bottom of the list? That way the dev/debugging stuff doesn't get in the way for regular users. |
@Tyriar possible, but how do you know it is of that category? For us it is currently just a label, so we need to introduce the concept of "developer" commands. |
@bpasero I guess it would need that yeah. |
PR welcome. |
@bpasero where abouts is the code for the command palette sorting? |
I think the sorting is being done in |
Hi @Tyriar are you working on this issue? If not I would like to pick it. |
@kdmu I was going to but it would be great if you could help out 😃 |
@Tyriar Let's give it a try 😃 Which kind of filtering are we expecting to have after this issue? Is enough if we just filter out developer commands based on entry label prefix? Or we want to introduce the notion of command type, let's say |
@kdmu I'm expecting exactly the same behavior as now, just "Developer" prefixes entries are in a sorted list below the main sorted list. You would likely need to introduce a new "isDeveloperCommand` flag to commands so that we don't need to do a string search on start up. |
@Tyriar not very clear about what do you mean by string search on start up. Adding My initial approach was filter out developer commands using a regex and sort both entries separately, the behavior will be the same but it will require us do string matching whenever |
@bpasero please advise the ideal solution 😃 |
I think having a flag when creating these commands that identifies normal commands from developer commands is the only way that works across all languages, where "Developer" might be translated to something else. |
@bpasero not familiar with vscode code base, I'll need some guidance about command's hierarchy. I see those "Developer" commands are different type of I'm guessing there's "parent" that all "Developer" share in common, is that true? If not I guess we will need to modify both type of commands. |
I suggest to look at the |
While most of "Developer" commands are @bpasero are my thoughts on the right track? If they are I guess we may need to take care of those non-WorkbenchAction apart from overloading |
Yeah tricky. Sorry I am not having enough time to look into this further at the moment. |
If we can afford the cost of string matching, a possible solution could be filtering entries based on label and alias. If I am not wrong, although label is translated in the destination language, alias is kept in english. |
No plans to change this. |
I've built muscle memory for switching themes via the command palette which I'm having difficulty getting rid of. Regardless, I don't think the first result for "theme" should be generating theme json.
The text was updated successfully, but these errors were encountered: