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# support: Create File above/below #275

Closed farlee2121 closed 1 year ago

farlee2121 commented 1 year ago

Motivation

See issue #270

Behavior Before PR

Creating a project file item for F# projects adds it to the end of the item list and displayed files. It can then be moved using move up or directly editing the project file.

Behavior After PR

add-below-2

Two new context menu items are added for Create file above and Create file below, but only in F# projects. These actions respect the normal create file experience (i.e. naming, templates) but will insert the created file into the project file next to whatever project item was selected to trigger the command.

This required a new optional parameter passed through the createFile call chain.

Decisions of Note