This question has previously been asked for hiding .js
and .js.map
files, when there is a .ts
file with the same basename. The answer is that you set your VS Code settings to exclude "**/*.js": {"when": "$(basename).ts"}
.
However, I'm wondering how I can hide the .js
files when the basename is either .ts
or .tsx
. I need VS Code to check for either extension.
Essentially I need to have both "**/*.js": {"when": "$(basename).ts"}
and "**/*.js": {"when": "$(basename).tsx"}
. Any ideas on how to get that done?