Folders with "Add existing projects" option
nev-21 opened this issue · comments
nev-21 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:
- rigth-click on any solution folder
- 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
Fernando Escolar commented
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:
- Commands: https://code.visualstudio.com/api/extension-guides/command
- Context menus: https://code.visualstudio.com/api/references/contribution-points#contributes.menus
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 :)