Skip to content

Commit 0434635

Browse files
committed
handle absolute path in /// references
1 parent 1a3db28 commit 0434635

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/parser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4019,7 +4019,8 @@ module ts {
40194019

40204020
function processReferencedFiles(file: SourceFile, basePath: string) {
40214021
forEach(file.referencedFiles, ref => {
4022-
processSourceFile(normalizePath(combinePaths(basePath, ref.filename)), /* isDefaultLib */ false, file, ref.pos, ref.end);
4022+
var referencedFilename = isRootedDiskPath(ref.filename) ? ref.filename : combinePaths(basePath, ref.filename);
4023+
processSourceFile(normalizePath(referencedFilename), /* isDefaultLib */ false, file, ref.pos, ref.end);
40234024
});
40244025
}
40254026

0 commit comments

Comments
 (0)