diff --git a/src/services/services.ts b/src/services/services.ts index 3f656fe75ff..7675b310715 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -3463,6 +3463,11 @@ namespace ts { importDeclaration.importClause.namedBindings.kind === SyntaxKind.NamedImports) { forEach((importDeclaration.importClause.namedBindings).elements, el => { + // If this is the current item we are editing right now, do not filter it out + if (el.getStart() <= position && position <= el.getEnd()) { + return; + } + let name = el.propertyName || el.name; exisingImports[name.text] = true; });