title: How do I use TypeScript 1.6 with Visual Studio Code to get generators support?
body: <p>I've been targeting ES6 for a while in Visual Studio Code, but when I try to switch to TypeScript, it throws errors such as:</p>
  
  <blockquote>
    <p>Generators are only available when targeting ECMAScript 6</p>
  </blockquote>
  
  <p>But my <strong>tsconfig.json</strong> does have the ES6 target:</p>
  
  <pre><code>{
      "compilerOptions": {
          "target": "ES6",
          "module": "amd",
          "sourceMap": true
      }
  }
  </code></pre>
  
  <p>So I tried <code>npm install -g typescript@1.6.0-beta</code> but it looks like VSCode doesn't care.</p>
  
  <blockquote>
    <p>Generators are not currently supported.</p>
  </blockquote>
  
  <p>How can I get TypeScript and generators to work properly together in VS Code?</p>
  
  <h3>Update</h3>
  
  <p>Changing <code>typescript.tsdk</code> to the 1.6 binary seems to fix IntelliSense errors, but this <strong>tasks.json</strong> still prints out <code>error TS1220: Generators are only available when targeting ECMAScript 6 or higher.</code>:</p>
  
  <pre><code>"version": "0.1.0",
  "command": "/usr/local/lib/node_modules/typescript/bin/tsc",
  "showOutput": "silent",
  "windows": {"command": "tsc.exe"},
  "isShellCommand": true,
  "args": ["app.ts"],
  "problemMatcher": "$tsc"
  </code></pre>
  
  <p>However, <code>/usr/local/lib/node_modules/typescript/bin/tsc --target ES6 app.ts</code> used manually in the terminal does work.</p>