We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0434635 commit 93e5a94Copy full SHA for 93e5a94
src/services/services.ts
@@ -2573,7 +2573,8 @@ module ts {
2573
/// Triple slash reference comments
2574
var comment = forEach(sourceFile.referencedFiles, r => (r.pos <= position && position < r.end) ? r : undefined);
2575
if (comment) {
2576
- var targetFilename = normalizePath(combinePaths(getDirectoryPath(filename), comment.filename));
+ var targetFilename = isRootedDiskPath(comment.filename) ? comment.filename : combinePaths(getDirectoryPath(filename), comment.filename);
2577
+ targetFilename = normalizePath(targetFilename);
2578
if (program.getSourceFile(targetFilename)) {
2579
return [{
2580
fileName: targetFilename,
0 commit comments