@effect/language-service 0.69.0 → 0.69.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/index.js CHANGED
@@ -8688,9 +8688,11 @@ var effectFnOpportunity = createDiagnostic({
8688
8688
  });
8689
8689
  }
8690
8690
  const pipeArgsSuffix = pipeArguments2.length > 0 ? ` Effect.fn also accepts the piped transformations as additional arguments.` : ``;
8691
+ const suggestConsultingQuickFixes = ` Your editor quickfixes or the "effect-language-service" cli can show you how to convert to Effect.fn or Effect.fnUntraced.`;
8692
+ const orFnUntraced = target.value.generatorFunction ? `, or Effect.fnUntraced` : ``;
8691
8693
  report({
8692
8694
  location: nameIdentifier ?? targetNode,
8693
- messageText: target.value.generatorFunction ? `This function could benefit from Effect.fn's automatic tracing and concise syntax, or Effect.fnUntraced to get just a more concise syntax.${pipeArgsSuffix}` : `This function could benefit from Effect.fn's automatic tracing and concise syntax.${pipeArgsSuffix}`,
8695
+ messageText: `This function could benefit from Effect.fn's automatic tracing and concise syntax${orFnUntraced}.${pipeArgsSuffix}${suggestConsultingQuickFixes}`,
8694
8696
  fixes
8695
8697
  });
8696
8698
  }