Add aliases in completion list

This commit is contained in:
Mohamed Hegazy 2014-09-30 13:50:09 -07:00
parent e49ff08922
commit 11ca3dab01
2 changed files with 16 additions and 1 deletions

View File

@ -2195,7 +2195,7 @@ module ts {
else {
isMemberCompletion = false;
/// TODO filter meaning based on the current context
var symbolMeanings = SymbolFlags.Type | SymbolFlags.Value | SymbolFlags.Namespace;
var symbolMeanings = SymbolFlags.Type | SymbolFlags.Value | SymbolFlags.Namespace | SymbolFlags.Import;
var symbols = typeInfoResolver.getSymbolsInScope(mappedNode, symbolMeanings);
getCompletionEntriesFromSymbols(symbols, activeCompletionSession);

View File

@ -0,0 +1,15 @@
/// <reference path='fourslash.ts' />
////module M {
//// export var value;
////
//// import x = M;
//// /*1*/
//// x./*2*/
////}
goTo.marker("1");
verify.memberListContains("x");
goTo.marker("2");
verify.memberListContains("value");