File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3236,9 +3236,10 @@ namespace ts {
3236
3236
function tryGetImportClauseCompletionSymbols ( importClause : ImportClause ) : boolean {
3237
3237
// cursor is in import clause
3238
3238
// try to show exported member for imported module
3239
- isMemberCompletion = true ;
3240
- isNewIdentifierLocation = true ;
3241
3239
if ( shouldShowCompletionsInImportsClause ( contextToken ) ) {
3240
+ isMemberCompletion = true ;
3241
+ isNewIdentifierLocation = false ;
3242
+
3242
3243
let importDeclaration = < ImportDeclaration > getAncestor ( contextToken , SyntaxKind . ImportDeclaration ) ;
3243
3244
Debug . assert ( importDeclaration !== undefined ) ;
3244
3245
@@ -3253,6 +3254,11 @@ namespace ts {
3253
3254
//let exports = typeInfoResolver.getExportsOfImportDeclaration(importDeclaration);
3254
3255
symbols = exports ? filterModuleExports ( exports , importDeclaration ) : emptyArray ;
3255
3256
}
3257
+ else {
3258
+ isMemberCompletion = false ;
3259
+ isNewIdentifierLocation = true ;
3260
+ }
3261
+
3256
3262
return true ;
3257
3263
}
3258
3264
You can’t perform that action at this time.
0 commit comments