<p dir="auto">It is not possible to match files with a double-extension using "$(basename).ext", i.e. ".js.map" or ".min.css".<br>
You can currently workaround matching ".js.map" files by excluding the extention in the "when":</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
   &quot;files.exclude&quot;: {
      &quot;**/*.js&quot;: { &quot;when&quot;: &quot;$(basename).ts&quot;},
      &quot;**/*.js.map&quot;: { &quot;when&quot;: &quot;$(basename).ts&quot;},   // Does nothing
      &quot;**/*.js.map&quot;: { &quot;when&quot;: &quot;$(basename)&quot;},      // Works
      &quot;**/*.css&quot;: { &quot;when&quot;: &quot;$(basename).scss&quot;},
      &quot;**/*.min.css&quot;: { &quot;when&quot;: &quot;$(basename).scss&quot;} // Does nothing
   }
}"><pre class="notranslate"><code class="notranslate">{
   "files.exclude": {
      "**/*.js": { "when": "$(basename).ts"},
      "**/*.js.map": { "when": "$(basename).ts"},   // Does nothing
      "**/*.js.map": { "when": "$(basename)"},      // Works
      "**/*.css": { "when": "$(basename).scss"},
      "**/*.min.css": { "when": "$(basename).scss"} // Does nothing
   }
}
</code></pre></div>
<p dir="auto">Ideally I would like to use <code class="notranslate">"when": "$(basename).ext"</code> to exclude ".js" and ".js.map" transpiled Typescript files, and ".css" and ".min.css" transpiled and minified Sass or Less files:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
   &quot;files.exclude&quot;: {
      &quot;**/*.js&quot;: { &quot;when&quot;: &quot;$(basename).ts&quot;},
      &quot;**/*.js.map&quot;: { &quot;when&quot;: &quot;$(basename).ts&quot;},
      &quot;**/*.css&quot;: { &quot;when&quot;: &quot;$(basename).scss&quot;},
      &quot;**/*.min.css&quot;: { &quot;when&quot;: &quot;$(basename).scss&quot;}
   }
}"><pre class="notranslate"><code class="notranslate">{
   "files.exclude": {
      "**/*.js": { "when": "$(basename).ts"},
      "**/*.js.map": { "when": "$(basename).ts"},
      "**/*.css": { "when": "$(basename).scss"},
      "**/*.min.css": { "when": "$(basename).scss"}
   }
}
</code></pre></div>
<p dir="auto">This issue could possibly be resolved by allowing regex expressions, as described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121832954" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/1214" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/1214/hovercard" href="https://github.com/microsoft/vscode/issues/1214">#1214</a></p>
<ul dir="auto">
<li>VSCode Version: 0.10.12</li>
<li>OS Version: Windows</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Compile TS -&gt; JS including source maps</li>
<li>Try to filter the js.map file if a corresponding TS file exists</li>
</ol>
<p dir="auto">Wasn't able to do so. Tried:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;**/*.js.map&quot;: { &quot;when&quot;: &quot;$basename($(basename)).ts&quot;}"><pre class="notranslate"><span class="pl-ent">"**/*.js.map"</span>: { <span class="pl-ent">"when"</span>: <span class="pl-s"><span class="pl-pds">"</span>$basename($(basename)).ts<span class="pl-pds">"</span></span>}</pre></div>