fernandoescolar / vscode-solution-explorer

This is a Visual Studio Code extension that provides a (.sln) Visual Studio Solution explorer panel..
MIT License
348 stars 73 forks source link

F#: Move Folders Up and Down #282

Closed farlee2121 closed 9 months ago

farlee2121 commented 1 year ago

Is your feature request related to a problem? Please describe. @OnurGumus pointed out that the explorer currently always puts folders at the top, but F# also considers the order of folders when compiling

Describe the solution you'd like I did a quick check of Visual Studio's behavior. In the fsproj, folders are represented as paths prefixed to file names. The folder appears in the relative position of the first item group record referencing that folder.

fsharp-folder-ordered

This is true even if the items within that folder are separated by items not in the folder fsharp-folder-ordered-split

Moving the folder up or down moves all project items in the folder up or down in the project file.

Describe alternatives you've considered We could start by just showing folders in compile order. Moving folders can always be done through the project file.