Skip to content

Commit ea1f187

Browse files
authored
Merge pull request #2082 from ahoppen/cancel
Send CancelRequestNotification if we time out a request in `TestSourceKitLSPClient`
2 parents e28c460 + 37b8b06 commit ea1f187

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SKTestSupport/TestSourceKitLSPClient.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
261261
.failure(ResponseError.unknown("\(R.method) request timed out after \(defaultTimeoutDuration)"))
262262
)
263263
}
264+
await server.handle(notification: CancelRequestNotification(id: requestID))
264265
}
265266
server.handle(request, id: requestID) { result in
266267
if replyOutstanding.takeValue() ?? false {

0 commit comments

Comments
 (0)