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

[FEATURE] - Ability to specify include / exclude folders per project

Open AzzaAzza69 opened this issue 6 months ago • 2 comments

When I save the project, it creates a "paths" array key, "paths": [],

and as I can't find any documentation, I thought I'd have a go at restricting the project to just specific folders, eg: "/mnt/x/project/app", "/mnt/x/project/lib", "/mnt/x/project/public/js", "/mnt/x/project/public/css"

but this doesn't appear to work - is this something you are looking at doing?

AzzaAzza69 avatar May 14 '25 17:05 AzzaAzza69

Hi @AzzaAzza69 ,

This paths property is outdated, and has no purpose anymore.

It was an attempt to create multi-root projects, before Multi-root workspaces, was officially released natively in VS Code.

But, about your question, what do you mean about restricting the project to just specific folders? Do you mean restricting folders in the Explorer view inside VS Code, or the list of projects that the extension would detect/provide?

alefragnani avatar May 18 '25 13:05 alefragnani

Where a project folder has lots of sub-folders: /project/ /project/app/ /project/app/controllers/ /project/app/views/ /project/public/ /project/public/css/ /project/public/js/ /project/public/images/ /project/public/fonts/ /project/public/third-party/

I would like to have: { rootPath: "/project", paths: ['app/', 'public/css/', 'public/js/'], } where app/ = all subfolders under app (see https://code.visualstudio.com/docs/editor/glob-patterns)

or maybe exclude folders from within the rootPath like this: { rootPath: "/project/", exclude: ['public/images/','public/fonts/','public/third-party/'], } so the tree would exclude the images, fonts, third-party folders.

AzzaAzza69 avatar May 20 '25 15:05 AzzaAzza69