We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd1a472 commit 2721782Copy full SHA for 2721782
Sources/LanguageServerProtocolJSONRPC/JSONRPCConnection.swift
@@ -165,6 +165,9 @@ public final class JSONRPCConnection: Connection {
165
ioGroup.notify(queue: queue) { [weak self] in
166
guard let self = self else { return }
167
Task {
168
+ for outstandingRequest in self.outstandingRequests.values {
169
+ outstandingRequest.replyHandler(LSPResult.failure(ResponseError.internalError("JSON-RPC Connection closed")))
170
+ }
171
await self.closeHandler?()
172
self.receiveHandler = nil // break retain cycle
173
}
0 commit comments