File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3236,9 +3236,10 @@ namespace ts {
32363236 function tryGetImportClauseCompletionSymbols ( importClause : ImportClause ) : boolean {
32373237 // cursor is in import clause
32383238 // try to show exported member for imported module
3239- isMemberCompletion = true ;
3240- isNewIdentifierLocation = true ;
32413239 if ( shouldShowCompletionsInImportsClause ( contextToken ) ) {
3240+ isMemberCompletion = true ;
3241+ isNewIdentifierLocation = false ;
3242+
32423243 let importDeclaration = < ImportDeclaration > getAncestor ( contextToken , SyntaxKind . ImportDeclaration ) ;
32433244 Debug . assert ( importDeclaration !== undefined ) ;
32443245
@@ -3253,6 +3254,11 @@ namespace ts {
32533254 //let exports = typeInfoResolver.getExportsOfImportDeclaration(importDeclaration);
32543255 symbols = exports ? filterModuleExports ( exports , importDeclaration ) : emptyArray ;
32553256 }
3257+ else {
3258+ isMemberCompletion = false ;
3259+ isNewIdentifierLocation = true ;
3260+ }
3261+
32563262 return true ;
32573263 }
32583264
You can’t perform that action at this time.
0 commit comments