@effect/language-service 0.62.4 → 0.62.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1687,7 +1687,9 @@ function makeTypeScriptUtils(ts) {
1687
1687
  } else {
1688
1688
  return;
1689
1689
  }
1690
- return { accessedObject, outerNode, replacementSpan };
1690
+ const importDeclaration = ts.findAncestor(accessedObject, ts.isImportDeclaration);
1691
+ if (importDeclaration) return;
1692
+ return { accessedObject, outerNode, replacementSpan, insideImportDeclaration: !!importDeclaration };
1691
1693
  }
1692
1694
  function parseDataForExtendsClassCompletion(sourceFile, position) {
1693
1695
  const maybeInfos = parseAccessedExpressionForCompletion(sourceFile, position);