Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folders with "Add existing projects" option #266

Open
nev-21 opened this issue Mar 1, 2023 · 1 comment
Open

Folders with "Add existing projects" option #266

nev-21 opened this issue Mar 1, 2023 · 1 comment

Comments

@nev-21
Copy link

nev-21 commented Mar 1, 2023

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

@fernandoescolar
Copy link
Owner

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants