title: What is the correct tasks.json config for compiling typescript in Visual Studio Code?
body: <p>Using <code>Ctrl</code>+<code>Shift</code>+<code>B</code> I added a default tasks.json file and uncommented the second task runner block. I have a typescript file in the root of the directory and a tsconfig.json.</p>
  
  <p>Everytime I compile I get 'error TS5023: Unknown compiler option 'p'. What is the correct definition to allow me to compile a typescript file? Can all files be compiled in one go even if they are in subdirectories?</p>
  
  <p>I have tried changing the args below to <code>["${file}"]</code> which simply allows me to compile the file that is open. This works. I've also run the tsc command from the command prompt and no -p or -project arguments exists.</p>
  
  <p>tasks.json</p>
  
  <pre><code>{
      "version": "0.1.0",
  
      // The command is tsc. Assumes that tsc has been installed using npm install -g typescript
      "command": "tsc",
  
      // The command is a shell script
      "isShellCommand": true,
  
      // Show the output window only if unrecognized errors occur. 
      "showOutput": "silent",
  
      // Tell the tsc compiler to use the tsconfig.json from the open folder.
      "args": ["-p", "."],
  
      // use the standard tsc problem matcher to find compile problems
      // in the output.
      "problemMatcher": "$tsc"
  }
  </code></pre>
  
  <p>tsconfig.json</p>
  
  <pre><code>{
      "compilerOptions": {
          "target": "ES5",
          "module": "amd",
          "sourceMap": true
      }
  }
  </code></pre>
  
  <p>VS Code: v0.30</p>
  
  <p>TypeScript: v1.4</p>