0

I have the following settings.json

{
    "files.exclude": {
        "**/.git": true,
        "**/.DS_Store": true,
        "**/*.js": { "when": "$(basename).tsx" }
    }
}

I would like to exclude generated .js files produced by .ts and .tsx files. Is there a syntax to specify both .ts and .tsx in the when?

jz87
  • 9,199
  • 10
  • 37
  • 42
  • Don't know if that would work, but have you tried using a wildcard? `"when":"$(basename).ts?"` – zlumer Feb 10 '16 at 11:58
  • It's kind of hacky, but it works, defining another expression that matches the same files. – jz87 Feb 11 '16 at 11:42

0 Answers0