Skip to content

Support group ordering #9153

Closed
Closed

Description

@chrisdias
  • VSCode Version: 1.3
  • OS Version: OSX

Steps to Reproduce:

  1. Add menus to the explorer context menu
  2. Run extension
  3. Note the sorting order where your contributions are at the top

image

Related to #8756?

The source for the extension is here: https://github.com/chrisdias/vscode-opennewinstance

Activity

  1. jrieken commented on Jul 12, 2016

    @jrieken
    Contributor

    Chris Dias (@chrisdias) What is you see is the implemented behaviour. What is did you expect?

  2. added
    info-needed
    on Jul 12, 2016
  3. chrisdias commented on Jul 12, 2016

    @chrisdias
    ContributorAuthor

    Assuming I don't have the ability to control the exact location in the list, I would expect the navigation section of the menu to be sorted:

    New File
    New Folder
    Open in Terminal
    Open New Workbench Here
    Reveal in Finder
    Scope Workbench to Here

    Alternatively, can I create my own group and how would I position that group between the Navigation (top) and the "Find in Folder" section?

  4. jrieken commented on Jul 13, 2016

    @jrieken
    Contributor

    Alternatively, can I create my own group and how would I position that group between the Navigation (top) and the "Find in Folder" section?

    That we don't support yet. Today the navigation group comes first and contributions to that group come first as well. Any other group comes at the end, ordering of group is still to be implemented. The idea is that we have a set of groups like navigation, modification etc with a fixed order.

  5. added
    feature-request
    and removed
    info-needed
    on Jul 13, 2016
  6. changed the title [-]Menu items dont sort properly in navigation group[/-] [+]Support group ordering[/+] on Jul 13, 2016
  7. chrisdias commented on Jul 14, 2016

    @chrisdias
    ContributorAuthor

    I like the idea of ordering of core menu groups, it keeps the experience consistent even if there are 100s of extensions contributing to the menus.

    I realize now that we don't sort the built-in menus, so having the contribution be sorted in that list doesn't make sense either. However, I think I might like to see contributed menus after the built-in menus within a group rather than before. Again, I think this would help make the experience be more consistent regardless of the extensions that are loaded.

  8. jrieken commented on Jul 25, 2016

    @jrieken
    Contributor

    Groups are now sorted lexically with the exception of navigation which always comes first. Within groups you can sort by adding a number like so navigation@10 or [email protected]. Legacy commands have the implicit order of zero (navigation@0)

  9. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions