format-files
format-files copied to clipboard
Can't ignore folders as gitignore do
For example:
# .gitignore
node_modules
After enable formatFiles.useGitIgnore
:
/myrepo/node_modules/blabla
: ignored as expected.
/myrepo/packages/module-a/node_modules/blabla
: BOOM!!!
Are there any solution for this?
Seems formatFiles.useGitIgnore
was deprecated?
config.useGitIgnore
in src/ext/utilities/config.ts
is never read.
I can confirm this behaviour, not useful for big repositories. For me also the excludePattern
is not working.
I also see the same issues as reported. (Both useGitIgnore + excludedFolders NOT working!) So this setting don't work to exclude the folder named "static":
"formatFiles.excludedFolders": [
"static"
]
But this can still be done by using excludePattern like this:
"formatFiles.excludePattern": "**/static/**",