mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-27 03:12:44 +03:00
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:
parent
67c08c8490
commit
9453e0c07e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user