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

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

Open
ctf0 opened this issue Dec 15, 2021 · 5 comments
Open

Comments

@ctf0
Copy link

ctf0 commented Dec 15, 2021

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.

@alefragnani
Copy link
Owner

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?

@ctf0
Copy link
Author

ctf0 commented Dec 15, 2021

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.

@alefragnani
Copy link
Owner

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

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.

@ctf0
Copy link
Author

ctf0 commented Dec 16, 2021

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

@alefragnani alefragnani changed the title [FEATURE] - check for project paths existence on vscode launch [FEATURE] - Add inline commands to delete/update projects with invalid path Dec 17, 2021
@ctf0
Copy link
Author

ctf0 commented Mar 13, 2024

any updates ?

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