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

Ignore recycle bin #237

Closed
sho-87 opened this issue Nov 4, 2018 · 2 comments
Closed

Ignore recycle bin #237

sho-87 opened this issue Nov 4, 2018 · 2 comments
Labels

Comments

@sho-87
Copy link

sho-87 commented Nov 4, 2018

I usually end up with a bunch of deleted git projects in my recycle bin (Windows), and auto project detection always seems to pick them up and adds them to the project list

I have tried adding something like this to my settings.json (one for each of my physical drives):

    "projectManager.any.ignoredFolders": [
        "f:\\$RECYCLE.BIN\\"
    ]

However, that doesnt seem to work and the extension still lists deleted projects

Is there a way to ignore recycling bin/trash folders? It seems like that would be a sensible default to have for this extension as youre probably not going to care about those folders showing up

@alefragnani
Copy link
Owner

Hi @sho-87 ,

If I understand correctly, you have defined your physical (F:) drives directly in projectManager.git.baseFolders, right?

The ignoredFolders is a black list of folder's name, to be skipped when the autodetection is deciding if a folder must be used or not. It will start with the base folders, navigating inside each subfolder. If a subfolder is named with some of the ignoredFolders, then it will be ignored. So, you must use only $RECLICLE.BIN, not the entire path

Hope this helps

@sho-87
Copy link
Author

sho-87 commented Nov 4, 2018

That makes sense. Seems to work now, thanks!

@sho-87 sho-87 closed this as completed Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants