@effect/language-service 0.55.1 → 0.55.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 +14 -2
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +14 -2
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +14 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +14 -2
- package/transform.js.map +1 -1
package/package.json
CHANGED
package/transform.js
CHANGED
|
@@ -4414,8 +4414,20 @@ var missedPipeableOpportunity = createDiagnostic({
|
|
|
4414
4414
|
while (nodeToVisit.length > 0) {
|
|
4415
4415
|
const node = nodeToVisit.shift();
|
|
4416
4416
|
if (ts.isCallExpression(node) && node.arguments.length === 1) {
|
|
4417
|
-
const
|
|
4418
|
-
|
|
4417
|
+
const isPipeCall = yield* pipe(typeParser.pipeCall(node), orElse2(() => void_));
|
|
4418
|
+
if (!isPipeCall) {
|
|
4419
|
+
const resolvedSignature = typeChecker.getResolvedSignature(node);
|
|
4420
|
+
if (resolvedSignature) {
|
|
4421
|
+
const returnType = typeChecker.getReturnTypeOfSignature(resolvedSignature);
|
|
4422
|
+
if (returnType) {
|
|
4423
|
+
const callSignatures = typeChecker.getSignaturesOfType(returnType, ts.SignatureKind.Call);
|
|
4424
|
+
if (callSignatures.length === 0) {
|
|
4425
|
+
const parentChain = callChainNodes.get(node) || [];
|
|
4426
|
+
callChainNodes.set(node.arguments[0], parentChain.concat(node));
|
|
4427
|
+
}
|
|
4428
|
+
}
|
|
4429
|
+
}
|
|
4430
|
+
}
|
|
4419
4431
|
} else if (callChainNodes.has(node) && ts.isExpression(node)) {
|
|
4420
4432
|
const parentChain = (callChainNodes.get(node) || []).slice();
|
|
4421
4433
|
const originalParentChain = parentChain.slice();
|