提交 8c313fca 编写于 作者: M Matt Bierner 提交者: GitHub

Assume Jsx For Implicit TS Projects (#15925)

Issue #15814

**Bug**
1. Open a tsx file on its own.
2. See a error about passing `--jsx` to tsc.

**Fix**
For implicit projects, assume `"jsx": "preserve"`.

Closes #15814
上级 66f4bf35
......@@ -464,6 +464,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
allowSyntheticDefaultImports: true,
allowNonTsExtensions: true,
allowJs: true,
jsx: 'Preserve'
};
let args: Proto.SetCompilerOptionsForInferredProjectsArgs = {
options: compilerOptions
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册