Re-enable building VS Code with TS 3.7 (#82289)

* Re-enable building VS Code with TS 3.7

Reverts 5b0cdadc87

Blocked from check in due to https://github.com/microsoft/TypeScript/issues/33936

* update d.ts for ts 3.7
This commit is contained in:
Matt Bierner
2019-10-17 14:14:20 -07:00
committed by GitHub
parent 9c0eaf760f
commit 9d125dd690
8 changed files with 24 additions and 44 deletions

View File

@@ -516,7 +516,7 @@ class DeclarationResolver {
'file.ts': fileContents
};
const service = ts.createLanguageService(new TypeScriptLanguageServiceHost({}, fileMap, {}));
const text = service.getEmitOutput('file.ts', true).outputFiles[0].text;
const text = service.getEmitOutput('file.ts', true, true).outputFiles[0].text;
return new CacheEntry(ts.createSourceFile(fileName, text, ts.ScriptTarget.ES5), mtime);
}
}