mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Update javascript/extractor/lib/typescript/src/main.ts
Co-Authored-By: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
@@ -290,7 +290,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