Fixed bug in alias resolution logic that caused the definition provider not to take the user to the right location in cases where there were multiple alias hops.

This commit is contained in:
Eric Traut 2019-10-22 12:00:09 -07:00
parent 67c08c8490
commit 9453e0c07e

View File

@ -137,7 +137,7 @@ export function resolveAliasDeclaration(declaration: Declaration, importLookup:
return curDeclaration;
}
const lookupResult = importLookup(declaration.path);
const lookupResult = importLookup(curDeclaration.path);
if (!lookupResult) {
return undefined;
}