mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Merge pull request #226541 from mjbvz/involved-gopher
Remove allowImportingTsExtensions from created tsconfigs
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user