Skip to content

Commit 5448bff

Browse files
asgerferik-krogh
andauthored
Update javascript/extractor/lib/typescript/src/main.ts
Co-Authored-By: Erik Krogh Kristensen <erik-krogh@github.com>
1 parent 852b90a commit 5448bff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • javascript/extractor/lib/typescript/src

javascript/extractor/lib/typescript/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ function handleOpenProjectCommand(command: OpenProjectCommand) {
290290
|| redirectNodeModulesPath(path) != null;
291291
},
292292
readFile: (path: string) => {
293-
if (!fs.existsSync(path)) {
293+
if (!ts.sys.fileExists(path)) {
294294
let virtualPath = virtualSourceRoot.toVirtualPathIfFileExists(path);
295295
if (virtualPath != null) return ts.sys.readFile(virtualPath);
296296
virtualPath = redirectNodeModulesPath(path);

0 commit comments

Comments
 (0)