@effect/language-service 0.58.3 → 0.58.4

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.58.3",
3
+ "version": "0.58.4",
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
@@ -2576,7 +2576,16 @@ function make2(ts, tsUtils, typeChecker, typeCheckerUtils, program) {
2576
2576
  const moduleSymbol = typeChecker.getSymbolAtLocation(sourceFile);
2577
2577
  if (!moduleSymbol) continue;
2578
2578
  const memberSymbol = typeChecker.tryGetMemberInModuleExports(memberName, moduleSymbol);
2579
- if (memberSymbol && memberSymbol === symbol3) result.push({ memberSymbol, moduleSymbol, sourceFile });
2579
+ if (memberSymbol) {
2580
+ if (memberSymbol === symbol3) {
2581
+ result.push({ memberSymbol, moduleSymbol, sourceFile });
2582
+ } else if (memberSymbol.flags & ts.SymbolFlags.Alias) {
2583
+ const aliased = typeChecker.getAliasedSymbol(memberSymbol);
2584
+ if (aliased === symbol3) {
2585
+ result.push({ memberSymbol, moduleSymbol, sourceFile });
2586
+ }
2587
+ }
2588
+ }
2580
2589
  }
2581
2590
  if (result.length > 0) {
2582
2591
  return result;
@@ -5593,7 +5602,7 @@ var annotate = createCodegen({
5593
5602
  const initializerTypeNode = fromNullable(typeCheckerUtils.typeToSimplifiedTypeNode(
5594
5603
  initializerType,
5595
5604
  enclosingNode,
5596
- ts.NodeBuilderFlags.NoTruncation
5605
+ ts.NodeBuilderFlags.NoTruncation | ts.NodeBuilderFlags.IgnoreErrors
5597
5606
  )).pipe(
5598
5607
  getOrUndefined
5599
5608
  );