Don't filter out the current item.

This commit is contained in:
Daniel Rosenwasser 2015-07-09 19:22:28 -07:00
parent 5de728d8ac
commit 1b0b434422

View file

@ -3463,6 +3463,11 @@ namespace ts {
importDeclaration.importClause.namedBindings.kind === SyntaxKind.NamedImports) {
forEach((<NamedImports>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;
});