Get just the name of the symbol (instead of qualified path) as symbolName of the definition info.
Fixes #652
This commit is contained in:
parent
71b77106a8
commit
8a650bf7ed
2 changed files with 2 additions and 3 deletions
|
@ -2599,7 +2599,7 @@ module ts {
|
||||||
var result: DefinitionInfo[] = [];
|
var result: DefinitionInfo[] = [];
|
||||||
|
|
||||||
var declarations = symbol.getDeclarations();
|
var declarations = symbol.getDeclarations();
|
||||||
var symbolName = typeInfoResolver.symbolToString(symbol, node);
|
var symbolName = typeInfoResolver.symbolToString(symbol); // Do not get scoped name, just the name of the symbol
|
||||||
var symbolKind = getSymbolKind(symbol);
|
var symbolKind = getSymbolKind(symbol);
|
||||||
var containerSymbol = symbol.parent;
|
var containerSymbol = symbol.parent;
|
||||||
var containerName = containerSymbol ? typeInfoResolver.symbolToString(containerSymbol, node) : "";
|
var containerName = containerSymbol ? typeInfoResolver.symbolToString(containerSymbol, node) : "";
|
||||||
|
|
|
@ -8,5 +8,4 @@
|
||||||
////var enumMember = e./*1*/thirdMember;
|
////var enumMember = e./*1*/thirdMember;
|
||||||
|
|
||||||
goTo.marker("1");
|
goTo.marker("1");
|
||||||
// This is bug #652
|
verify.verifyDefinitionsName("thirdMember", "e");
|
||||||
verify.verifyDefinitionsName("e.thirdMember", "e");
|
|
Loading…
Reference in a new issue