mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Set jsx preserve in generate ts/jsconfig.json. Fixes #39202
This commit is contained in:
parent
c08399a4f1
commit
d049d540d5
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -34,5 +34,6 @@
|
|||
"command": "${workspaceFolder}\\scripts\\test.bat --coverage --run ${file}"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"typescript.tsdk": "node_modules/typescript/lib"
|
||||
}
|
|
@ -17,7 +17,8 @@ function getEmptyConfig(
|
|||
) {
|
||||
const compilerOptions = [
|
||||
'"target": "ES6"',
|
||||
'"module": "commonjs"'
|
||||
'"module": "commonjs"',
|
||||
'"jsx": "preserve"',
|
||||
];
|
||||
if (!isTypeScriptProject && config.checkJs) {
|
||||
compilerOptions.push('"checkJs": true');
|
||||
|
|
Loading…
Reference in a new issue