Skip to content

Commit f3059ce

Browse files
author
Armando Aguirre
committed
Addressed PR comments.
1 parent 5b7abf2 commit f3059ce

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/services/goToDefinition.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,8 @@ namespace ts.GoToDefinition {
156156
return undefined;
157157
}
158158

159-
let comment = findReferenceInPosition(sourceFile.referencedFiles, position);
160-
if (!comment || !tryResolveScriptReference(program, sourceFile, comment)) {
161-
comment = findReferenceInPosition(sourceFile.typeReferenceDirectives, position);
162-
}
163-
159+
// Check if position is on triple slash reference.
160+
const comment = findReferenceInPosition(sourceFile.referencedFiles, position) || findReferenceInPosition(sourceFile.typeReferenceDirectives, position);
164161
if (comment) {
165162
return {
166163
definitions,

0 commit comments

Comments
 (0)