@effect/language-service 0.58.1 → 0.58.2
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 +6 -3
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +6 -3
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +6 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +6 -3
- package/transform.js.map +1 -1
package/cli.js
CHANGED
|
@@ -33698,9 +33698,11 @@ var anyUnknownInErrorContext = createDiagnostic({
|
|
|
33698
33698
|
}
|
|
33699
33699
|
if (ts.isParameter(node) || ts.isPropertyDeclaration(node) || ts.isVariableDeclaration(node)) {
|
|
33700
33700
|
if (node.type) {
|
|
33701
|
+
const typeNode = node.type;
|
|
33701
33702
|
const type3 = typeChecker.getTypeAtLocation(node.type);
|
|
33702
33703
|
const expectedEffect = yield* pipe(
|
|
33703
33704
|
typeParser.strictEffectType(type3, node.type),
|
|
33705
|
+
orElse14(() => typeParser.layerType(type3, typeNode)),
|
|
33704
33706
|
orElse14(() => void_8)
|
|
33705
33707
|
);
|
|
33706
33708
|
if (expectedEffect) continue;
|
|
@@ -33722,8 +33724,9 @@ var anyUnknownInErrorContext = createDiagnostic({
|
|
|
33722
33724
|
if (!type2) continue;
|
|
33723
33725
|
yield* pipe(
|
|
33724
33726
|
typeParser.strictEffectType(type2, node),
|
|
33725
|
-
map34((
|
|
33726
|
-
|
|
33727
|
+
orElse14(() => pipe(typeParser.layerType(type2, node), map34(({ E, RIn }) => ({ E, R: RIn })))),
|
|
33728
|
+
map34((effectOrLayer) => {
|
|
33729
|
+
const { E, R } = effectOrLayer;
|
|
33727
33730
|
const hasAnyUnknownR = isAnyOrUnknown(R);
|
|
33728
33731
|
const hasAnyUnknownE = isAnyOrUnknown(E);
|
|
33729
33732
|
if (hasAnyUnknownR || hasAnyUnknownE) {
|
|
@@ -33746,7 +33749,7 @@ var anyUnknownInErrorContext = createDiagnostic({
|
|
|
33746
33749
|
matchingNodes.splice(i, 1);
|
|
33747
33750
|
}
|
|
33748
33751
|
}
|
|
33749
|
-
const suggestions = [`This
|
|
33752
|
+
const suggestions = [`This has ${channels.join(" and ")} which is not recommended.`];
|
|
33750
33753
|
if (hasAnyUnknownR) {
|
|
33751
33754
|
suggestions.push(`Only service identifiers should appear in the requirements channel.`);
|
|
33752
33755
|
}
|