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.
2 parents 4782273 + 8cdda32 commit 5df19ccCopy full SHA for 5df19cc
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 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