@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.
package/index.js CHANGED
@@ -3945,7 +3945,9 @@ function makeTypeScriptUtils(ts) {
3945
3945
  } else {
3946
3946
  return;
3947
3947
  }
3948
- return { accessedObject, outerNode, replacementSpan };
3948
+ const importDeclaration = ts.findAncestor(accessedObject, ts.isImportDeclaration);
3949
+ if (importDeclaration) return;
3950
+ return { accessedObject, outerNode, replacementSpan, insideImportDeclaration: !!importDeclaration };
3949
3951
  }
3950
3952
  function parseDataForExtendsClassCompletion(sourceFile, position) {
3951
3953
  const maybeInfos = parseAccessedExpressionForCompletion(sourceFile, position);