Skip to content

Commit 11ca3da

Browse files
committed
Add aliases in completion list
1 parent e49ff08 commit 11ca3da

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2195,7 +2195,7 @@ module ts {
21952195
else {
21962196
isMemberCompletion = false;
21972197
/// TODO filter meaning based on the current context
2198-
var symbolMeanings = SymbolFlags.Type | SymbolFlags.Value | SymbolFlags.Namespace;
2198+
var symbolMeanings = SymbolFlags.Type | SymbolFlags.Value | SymbolFlags.Namespace | SymbolFlags.Import;
21992199
var symbols = typeInfoResolver.getSymbolsInScope(mappedNode, symbolMeanings);
22002200

22012201
getCompletionEntriesFromSymbols(symbols, activeCompletionSession);
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
////module M {
4+
//// export var value;
5+
////
6+
//// import x = M;
7+
//// /*1*/
8+
//// x./*2*/
9+
////}
10+
11+
goTo.marker("1");
12+
verify.memberListContains("x");
13+
14+
goTo.marker("2");
15+
verify.memberListContains("value");

0 commit comments

Comments
 (0)