mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Add support for goto def on external module name
This commit is contained in:
@@ -2072,6 +2072,10 @@ module ts {
|
||||
var moduleType = typeChecker.getTypeOfSymbol(importSymbol);
|
||||
symbol = moduleType ? moduleType.symbol : undefined;
|
||||
}
|
||||
// External module name in an ambient declaration
|
||||
else if (node.parent.kind === SyntaxKind.ModuleDeclaration) {
|
||||
symbol = typeChecker.getSymbolOfNode(node.parent);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user