@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/cli.js +4 -2
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +3 -1
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +3 -1
- package/transform.js.map +1 -1
|
@@ -5218,9 +5218,11 @@ var effectFnOpportunity = createDiagnostic({
|
|
|
5218
5218
|
});
|
|
5219
5219
|
}
|
|
5220
5220
|
const pipeArgsSuffix = pipeArguments2.length > 0 ? ` Effect.fn also accepts the piped transformations as additional arguments.` : ``;
|
|
5221
|
+
const suggestConsultingQuickFixes = ` Your editor quickfixes or the "effect-language-service" cli can show you how to convert to Effect.fn or Effect.fnUntraced.`;
|
|
5222
|
+
const orFnUntraced = target.value.generatorFunction ? `, or Effect.fnUntraced` : ``;
|
|
5221
5223
|
report({
|
|
5222
5224
|
location: nameIdentifier ?? targetNode,
|
|
5223
|
-
messageText:
|
|
5225
|
+
messageText: `This function could benefit from Effect.fn's automatic tracing and concise syntax${orFnUntraced}.${pipeArgsSuffix}${suggestConsultingQuickFixes}`,
|
|
5224
5226
|
fixes
|
|
5225
5227
|
});
|
|
5226
5228
|
}
|