Skip to content

Move Up/Down context menu not available on folders, but Alt-Up/Down works #2050

Closed

Description

@abelbraaksma

Move Up / Down is not available in the context menu when a folder is selected, however the functionality is there, so there seems no reason for removing it from the context menu.

Repro steps

Rightclick on a folder in the solution explorer:

image

Expected behavior

The options Move Up / Move Down should be available, similar to when you select a file:

image

Actual behavior

Move Up / Move Down are not available.

Known workarounds

Use the Alt + Up Arrow or Alt + Down Arrow key combinations.

Related information

The same applies to the functionality of Add Below, Add Above context menus.

  • Visual Studio 2015, Update 3

Activity

  1. added
    Impact-Medium
    on Dec 19, 2016
  2. saul commented on Dec 31, 2016

    @saul
    Contributor

    It looks like this is because QueryStatusOnNode is never being called on FSharpFolderNode with a command group of VSProjectConstants.guidFSharpProjectCmdSet. It is called with this command group on FSharpFileNode. I'm not sure where these commands get registered but I imagine this is the issue.

  3. added this to the milestone on Jan 6, 2017
  4. cartermp commented on Jan 6, 2017

    @cartermp
    Contributor

    Tagging this for VS Updates; although it seems like a small enough change that we may be able to get it in for release.

  5. JoshVarty commented on Mar 17, 2017

    @JoshVarty
    Contributor

    I'll try to take a look at this. No guarantees though as I don't know much about the solution explorer APIs.

  6. JoshVarty commented on Mar 17, 2017

    @JoshVarty
    Contributor

    Interestingly, it looks like it no longer shows up at all as of 15.4.1.17031702

    image

  7. saul commented on Mar 17, 2017

    @saul
    Contributor

    @JoshVarty that's the problem :) it may only work on folders and not files. There is a ticket but I'm on mobile so I'm struggling to find it!

    Edit: ignore me - I didn't notice which ticket you were commenting on

  8. cartermp commented on Mar 19, 2017

    @cartermp
    Contributor

    @JoshVarty Shows up for me on 15.4.1.17031702. The options are greyed out, though.

  9. added a commit that references this issue on Mar 24, 2017
    5cc16a7
  10. added a commit that references this issue on Mar 27, 2017
    b4c67ae
  11. abelbraaksma commented on Jul 25, 2017

    @abelbraaksma
    ContributorAuthor

    Excellent work on this! The folder-support in VS2017, and adding/removing items from a folder, or moving them inside a folder or to/from a folder, including the much-anticipated copy/paste now all seem totally stable (it used to cripple the project file).

  12. modified the milestones: , 15.4 on Jun 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugImpact-Medium

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions