In VS Code Explorer, I want to hide the files generated during TypeScript compilation.
When having a my-file.ts, generated files can be:
my-file.jsmy-file.js.mapmy-file.d.ts
Hiding the first two is easy, I need this in the settings.json of VS Code:
{
"files.exclude": {
"**/*.js.map": true,
"**/*.js": { "when": "$(basename).ts" }
}
}
But what about the third? I tried this one, but it hides ALL .d.ts files, even the standalone ones that are NOT generated from a .ts file.
{
"files.exclude": {
"**/*.d.ts": { "when": "$(basename).ts", "__MY_PROBLEM": "It hides all .d.ts files" }
}
}
Any suggestions to hide only those .d.ts files that are generated from a .ts file with the same name?