sleistner / vscode-fileutils

Visual Studio Code Extension
https://marketplace.visualstudio.com/items?itemName=sleistner.vscode-fileutils
MIT License
190 stars 26 forks source link

whenever i am creating a new folder at root its also loading the subdirectories of node-modules which i dont want #382

Closed Prasad-Medisetti closed 1 year ago

Prasad-Medisetti commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

dr1verrr commented 3 years ago

Same

ntdash commented 2 years ago

how about an exclude_folder config option?

vhxubo commented 2 years ago

Just add excluded files or folders in files.exclude, like this.

"files.exclude": {
  "**/.classpath": true,
  "**/.factorypath": true,
  "**/.project": true,
  "**/.settings": true,
  "**/node_modules": true
}

Explanation

https://github.com/sleistner/vscode-fileutils/blob/ecceb627114426a781480a44a0078444bb6b6d6e/src/lib/TreeWalker.ts#L13

A glob pattern that defines files and folders to exclude. The glob pattern will be matched against the file paths of resulting matches relative to their workspace. When undefined, default file-excludes (e.g. the files.exclude-setting but not search.exclude) will apply. When null, no excludes will apply. from: VS Code API