You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move Up/Down context menu not available on folders, but Alt-Up/Down works #2050
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:
Expected behavior
The options Move Up / Move Down should be available, similar to when you select a file:
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.
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.
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).
Activity
saul commentedon Dec 31, 2016
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.cartermp commentedon Jan 6, 2017
Tagging this for VS Updates; although it seems like a small enough change that we may be able to get it in for release.
JoshVarty commentedon Mar 17, 2017
I'll try to take a look at this. No guarantees though as I don't know much about the solution explorer APIs.
JoshVarty commentedon Mar 17, 2017
Interestingly, it looks like it no longer shows up at all as of
15.4.1.17031702saul commentedon Mar 17, 2017
@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
cartermp commentedon Mar 19, 2017
@JoshVarty Shows up for me on
15.4.1.17031702. The options are greyed out, though.Show "Move up"/"Move down" context menu items on folder nodes in the …
Show "Move up"/"Move down" context menu items on folder nodes in the …
abelbraaksma commentedon Jul 25, 2017
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).