I am working on a typescript project in Visual Studio code and would like to hide the .js.map (and maybe even the .js) files from appearing in the
There is still no official solution for excluding a file glob based on two different conditions. See this issue.
There is a workaround though, to define two different glob patterns which target the same files:
{
"files.exclude": {
"**/*.js": { "when": "$(basename).ts"},
"**/*?.js": { "when": "$(basename).tsx"}
}
}