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

Add option to open a project file on click #269

Closed farlee2121 closed 1 year ago

farlee2121 commented 1 year ago

Motivation

I'm aiming to make the F# editing experience smoother with Visual Studio as a reference. In particular, F# requires files to be in dependency order in the fsproj.

See also #268

Current Behavior

Changing F# file order requires right clicking a project selecting open file. Or, a user can switch to the normal file explorer to edit the fsproj file.

Alternatives

I see three main alternatives to solve this problem

After exploring, I decided that adding optional click behavior to project tree items was best. It is a small change, it allows behavior similar to Visual Studio, the feature has already been requested (#179), and it simplifies other project editing (which has become more common since the new csproj approach).

Behavior after PR

By default, the behavior will be unchanged. The users can set a boolean configuration value that will change the behavior when project items are clicked. Instead of expanding / collapsing, the project's underlying file will be opened.

fernandoescolar commented 1 year ago

Thanks!