Merge pull request #226541 from mjbvz/involved-gopher

Remove allowImportingTsExtensions from created tsconfigs
This commit is contained in:
Matt Bierner
2024-08-24 14:18:44 -07:00
committed by GitHub

View File

@@ -76,6 +76,10 @@ function inferredProjectConfigSnippet(
config: TypeScriptServiceConfiguration
) {
const baseConfig = inferredProjectCompilerOptions(version, projectType, config);
if (projectType === ProjectType.TypeScript) {
delete baseConfig.allowImportingTsExtensions;
}
const compilerOptions = Object.keys(baseConfig).map(key => `"${key}": ${JSON.stringify(baseConfig[key])}`);
return new vscode.SnippetString(`{
"compilerOptions": {