-
Notifications
You must be signed in to change notification settings - Fork 28.9k
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
Support regex in files.exclude => when #1214
Comments
You may also want to add "when" to the docs. |
There is a work around 😄. Define define different regular expression that matches the same files: {
"files.exclude": {
"**/*.js": { "when": "$(basename).ts"},
"**/*?.js": { "when": "$(basename).tsx"}
}
} @bpasero can you pls check that we cover |
+1 on this issue, although the workaround suggested by @egamma works for me |
I would like to ignore
Apparently, |
+1 want this feature too. |
and want |
@sparebytes seems like no further investigation has been made :( also looking forward to flexible exclusion |
This would be extremely helpful in a lot of cases:
|
No more actual. Also for consistency reasons I would expect read about |
This is still an important issue that needs to be addressed. Being able to hide derived Also, I've been searching for hours for any documentation about the +1 |
+1 Problem with mentioned workaround (use 2 glob patterns for js) is that it works only in Explorer but does not work in Search. |
I would like to ignore JS files in my project when there's a matching TS or matching TSX file. Right now I have to choose one or the other. Please support making the "when" directive in the "files.exclude" workspace setting use a regex, so I could do this:
The text was updated successfully, but these errors were encountered: