Merge branch 'ts-monorepo-deps' of github.com:asger-semmle/ql into ts-monorepo-deps

This commit is contained in:
Asger Feldthaus
2020-01-24 09:58:35 +00:00

View File

@@ -296,7 +296,7 @@ function handleOpenProjectCommand(command: OpenProjectCommand) {
|| redirectNodeModulesPath(path) != null;
},
readFile: (path: string) => {
if (!fs.existsSync(path)) {
if (!ts.sys.fileExists(path)) {
let virtualPath = virtualSourceRoot.toVirtualPathIfFileExists(path);
if (virtualPath != null) return ts.sys.readFile(virtualPath);
virtualPath = redirectNodeModulesPath(path);