diff --git a/src/services/services.ts b/src/services/services.ts index 7cdb52ff6cf..b1761817a03 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -4586,11 +4586,10 @@ module ts { return root.parent.kind === SyntaxKind.TypeReference && !isLastClause; } - function isInRightSideOfImport(node: EntityName) { + function isInRightSideOfImport(node: Node) { while (node.parent.kind === SyntaxKind.QualifiedName) { node = node.parent; } - return node.parent.kind === SyntaxKind.ImportDeclaration && (node.parent).entityName === node; }