@effect/language-service 0.62.3 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/language-service",
3
- "version": "0.62.3",
3
+ "version": "0.62.5",
4
4
  "description": "A Language-Service Plugin to Refactor and Diagnostic effect-ts projects",
5
5
  "main": "index.cjs",
6
6
  "bin": {
package/transform.js CHANGED
@@ -1688,7 +1688,9 @@ function makeTypeScriptUtils(ts) {
1688
1688
  } else {
1689
1689
  return;
1690
1690
  }
1691
- return { accessedObject, outerNode, replacementSpan };
1691
+ const importDeclaration = ts.findAncestor(accessedObject, ts.isImportDeclaration);
1692
+ if (importDeclaration) return;
1693
+ return { accessedObject, outerNode, replacementSpan, insideImportDeclaration: !!importDeclaration };
1692
1694
  }
1693
1695
  function parseDataForExtendsClassCompletion(sourceFile, position) {
1694
1696
  const maybeInfos = parseAccessedExpressionForCompletion(sourceFile, position);