mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-23 03:39:23 +00:00
This fixes a problem where the `typescript` VSCode task runs `tsc` with `-p`
when it should run `-b` when `tsconfig.json` has the `"references"` property.
```js
{
"extends": "./tsconfig.app.json",
// meow
"references": [{ "path": "./tsconfig.lib.json" }]
}
```
This bug happens because while `tsconfig.json` file allows comment, the
parsing logic here uses vanilla `JSON.parse` which cannot parse comments.
This commit fixes it by using `jsonc.parse` instead.
Language Features for Typescript and Javascript files
Notice: This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
Features
See Typescript in Visual Studio Code and Javascript in Visual Studio Code to learn about the features of this extension.