plugins: sort plugins in the plugins-view#7601
Conversation
The following commit adds a comparator method to the `plugins-view` so that plugins are sorted based on `name`, and `publisher` if required. Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
lmcbout
left a comment
There was a problem hiding this comment.
Tested on Ubuntu 18.04
I have some plugins like: vscode-maven, vscode-java-debug, vscode-java-dependency, built-in java and redhat-java
I notice the builtin and redhat java are group together, but all the one starting with vscode-[...] are together at the end. Would it be nice to have all related one (JAVA) for example to get set in the same area. Since some plugins add the "vscode-" to their name and some just use a name (without vscode-)
Should we sort the name and remove the "vscode-" before the sorting ?
By the way, it looks nice this way too, but I would like them to be grouped together
I don't think we should hardcode values such as |
|
@lmcbout any objections to merging? |
|
@vince-fugnitto It is already approved. |
As previously mentioned I don't think there is a way to generically apply additional sorting, but you can bring it up if its important to you. |
What it does
I generally use the
plugins-viewwhen debugging features to quickly determine which plugins are currently being consumed, however onmasterthe list of plugins are unsorted making their discovery more difficult. I thought I'd do a quick-fix to correctly sort them for end-users.The following commit adds a comparator method to the
plugins-viewso that plugins are sorted based onname, andpublisherif required.How to test
plugins-viewand determine if plugins are successfully sorted by name (if the name is equal, verify that they are sorted by publisher name).Review checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com