mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Merge branch 'ts-monorepo-deps' of github.com:asger-semmle/ql into ts-monorepo-deps
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user