@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/index.js CHANGED
@@ -2774,7 +2774,16 @@ function make3(ts, tsUtils, typeChecker, typeCheckerUtils, program) {
2774
2774
  const moduleSymbol = typeChecker.getSymbolAtLocation(sourceFile);
2775
2775
  if (!moduleSymbol) continue;
2776
2776
  const memberSymbol = typeChecker.tryGetMemberInModuleExports(memberName, moduleSymbol);
2777
- if (memberSymbol && memberSymbol === symbol3) result.push({ memberSymbol, moduleSymbol, sourceFile });
2777
+ if (memberSymbol) {
2778
+ if (memberSymbol === symbol3) {
2779
+ result.push({ memberSymbol, moduleSymbol, sourceFile });
2780
+ } else if (memberSymbol.flags & ts.SymbolFlags.Alias) {
2781
+ const aliased = typeChecker.getAliasedSymbol(memberSymbol);
2782
+ if (aliased === symbol3) {
2783
+ result.push({ memberSymbol, moduleSymbol, sourceFile });
2784
+ }
2785
+ }
2786
+ }
2778
2787
  }
2779
2788
  if (result.length > 0) {
2780
2789
  return result;
@@ -4176,7 +4185,7 @@ var annotate = createCodegen({
4176
4185
  const initializerTypeNode = fromNullable(typeCheckerUtils.typeToSimplifiedTypeNode(
4177
4186
  initializerType,
4178
4187
  enclosingNode,
4179
- ts.NodeBuilderFlags.NoTruncation
4188
+ ts.NodeBuilderFlags.NoTruncation | ts.NodeBuilderFlags.IgnoreErrors
4180
4189
  )).pipe(
4181
4190
  getOrUndefined
4182
4191
  );
@@ -16483,7 +16492,7 @@ var toggleReturnTypeAnnotation = createRefactor({
16483
16492
  const returnTypeNode = typeCheckerUtils.typeToSimplifiedTypeNode(
16484
16493
  returnType,
16485
16494
  enclosingNode,
16486
- ts.NodeBuilderFlags.NoTruncation
16495
+ ts.NodeBuilderFlags.NoTruncation | ts.NodeBuilderFlags.IgnoreErrors
16487
16496
  );
16488
16497
  if (!returnTypeNode) return yield* fail(new RefactorNotApplicableError());
16489
16498
  return {
@@ -16531,7 +16540,7 @@ var toggleTypeAnnotation = createRefactor({
16531
16540
  const initializerTypeNode = fromNullable(typeCheckerUtils.typeToSimplifiedTypeNode(
16532
16541
  initializerType,
16533
16542
  enclosingNode,
16534
- ts.NodeBuilderFlags.NoTruncation
16543
+ ts.NodeBuilderFlags.NoTruncation | ts.NodeBuilderFlags.IgnoreErrors
16535
16544
  )).pipe(
16536
16545
  getOrUndefined
16537
16546
  );