fernandoescolar / vscode-solution-explorer

This is a Visual Studio Code extension that provides a (.sln) Visual Studio Solution explorer panel..

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Folders with "Add existing projects" option

nev-21 opened this issue · comments

commented

Describe the solution you'd like
Add this option: "Add existing project", to folders context-menu (right-click on folder).
Then allow to add many projects at once.

The workflow should be like this:

  1. rigth-click on any solution folder
  2. a windows-popup appear to select a "folder" or "csproj"
    2.1. If csproj was selected, just add it
    2.2. if a folder was selected, then the vscode-prompt appear with the list of all projects inside that folder (recursively), the promt should allow to add many selected projects not only one, to add them at once.

i would like to help if you guide me how to do it

Hi @nev-21,
I will try to summarize what is necessary to extend vscode-solution-explorer commands:

First of all you have to know the vscode extensibility:

Then you must know:

  • Every user interaction is a vscode Command.
  • vscode-solution-explorer uses context variables in the packages.json contribution field to link commands to the correct menu items.
  • In the SolutionExplorerCommands.ts file you will find the command binding.
  • You can find the vscode-solution-explorer commands in the src/commands folder.
  • Each vscode-solution-explorer command calls one or more actions.
  • You can find the vscode-solution-explorer actions in the src/actions folder.

I hope it helps you :)