@effect/language-service 0.57.1 → 0.58.1

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.57.1",
3
+ "version": "0.58.1",
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
@@ -3691,6 +3691,10 @@ var anyUnknownInErrorContext = createDiagnostic({
3691
3691
  }
3692
3692
  ts.forEachChild(node, appendNodeToVisit);
3693
3693
  if (!ts.isExpression(node)) continue;
3694
+ if (node.parent && ts.isJsxSelfClosingElement(node.parent) && node.parent.tagName === node) continue;
3695
+ if (node.parent && ts.isJsxOpeningElement(node.parent) && node.parent.tagName === node) continue;
3696
+ if (node.parent && ts.isJsxClosingElement(node.parent) && node.parent.tagName === node) continue;
3697
+ if (node.parent && ts.isJsxAttribute(node.parent) && node.parent.name === node) continue;
3694
3698
  let type = typeChecker.getTypeAtLocation(node);
3695
3699
  if (ts.isCallExpression(node)) {
3696
3700
  const resolvedSignature = typeChecker.getResolvedSignature(node);