vscode-project-manager icon indicating copy to clipboard operation
vscode-project-manager copied to clipboard

[FEATURE] - Add `inline` commands to delete/update projects with invalid path

Open ctf0 opened this issue 3 years ago • 5 comments

right now we have to clear the projects manually through the ext json file

it would be much better & quicker if the ext check for the projects paths on vscode launching & remove the unfound ones.

another solution could be adding an x icon next to each project so we can delete any one we dont need anymore.

ctf0 avatar Dec 15 '21 10:12 ctf0

Hi @ctf0 ,

It already have a check, but it is only available when you use the Project Manager: List Projects to Open and Project Manager: List Projects to Open in New Window commands, via the Command Palette. It adds a "Path does not exist" message below the project name/path.

You can however, turn off this validation, using the projectManager.checkInvalidPathsBeforeListing setting as false.

This check however is not being used in the Side Bar, which I guess is the reason you opened this issue, right?

alefragnani avatar Dec 15 '21 16:12 alefragnani

yep, but also the check from the command panel still needs the manual way, however i was hoping that the check and removal would happen automatically on the extension start.

ctf0 avatar Dec 15 '21 17:12 ctf0

Instead of the extension taking care of the so called missing projects, and wipe them out from the project list, I prefer a notification approach. Leave to the user the decision about what to do with it, delete or update the path.

That's what happens today when you select a project with a Path does not exist message.

To make the clean up easier (individually), I guess a few thing could be added to missing projects.

  1. Improve the Side Bar
  • Replace the icon, using the same one displayed in the Command Palette
  • Add a "path does not exist" message in the Project name
  • Add Delete and Update Path inline commands for these projects
  1. Improve the Command Palette
  • Add the same Delete and Update Path as inline commands, using the newly released API (#570)

Alternatively, a new Delete projects with invalid path command, only in the Side Bar. This command, however, would only work for local projects. Any remote project (Container, SSH, WSL and Codespaces) would be ignored.

alefragnani avatar Dec 16 '21 02:12 alefragnani

Add Delete and Update Path inline commands for these projects

would be enough for the sidebar

Alternatively, a new Delete projects with invalid path command, only in the Side Bar.

this also would be great for a one time click solution

ctf0 avatar Dec 16 '21 09:12 ctf0

any updates ?

ctf0 avatar Mar 13 '24 08:03 ctf0