mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Add aliases in completion list
This commit is contained in:
parent
e49ff08922
commit
11ca3dab01
@ -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);
|
||||
|
||||
15
tests/cases/fourslash/completionListOnAliases.ts
Normal file
15
tests/cases/fourslash/completionListOnAliases.ts
Normal 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");
|
||||
Loading…
x
Reference in New Issue
Block a user