Skip to content

Commit fd1a472

Browse files
authored
Revert "When a JSON-RPC connection is closed, send an error response to all outstanding requests" (#1706)
Reverts #1688 This seems to be breaking toolchain builds: ``` JSONRPCConnection.swift:168:35: error: reference to property 'outstandingRequests' in closure requires explicit use of 'self' to make capture semantics explicit for outstandingRequest in outstandingRequests.values { ``` https://ci.swift.org/job/swift-PR-toolchain-macos/1519/console
1 parent ffed667 commit fd1a472

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Sources/LanguageServerProtocolJSONRPC/JSONRPCConnection.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ public final class JSONRPCConnection: Connection {
165165
ioGroup.notify(queue: queue) { [weak self] in
166166
guard let self = self else { return }
167167
Task {
168-
for outstandingRequest in outstandingRequests.values {
169-
outstandingRequest.replyHandler(LSPResult.failure(ResponseError.internalError("JSON-RPC Connection closed")))
170-
}
171168
await self.closeHandler?()
172169
self.receiveHandler = nil // break retain cycle
173170
}

0 commit comments

Comments
 (0)