Skip to content

Commit af02df9

Browse files
revert changes to TestSourceKitLSPClient
1 parent 4606232 commit af02df9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Sources/SKTestSupport/TestSourceKitLSPClient.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,12 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
238238
// MARK: - Sending messages
239239

240240
/// Send the request to `server` and return the request result.
241-
package func send<R: RequestType>(_ request: R) async throws(ResponseError) -> R.Response {
242-
return try await withCheckedContinuation { continuation in
241+
package func send<R: RequestType>(_ request: R) async throws -> R.Response {
242+
return try await withCheckedThrowingContinuation { continuation in
243243
self.send(request) { result in
244-
continuation.resume(returning: result)
244+
continuation.resume(with: result)
245245
}
246-
}.get()
246+
}
247247
}
248248

249249
/// Variant of `send` above that allows the response to be discarded if it is a `VoidResponse`.

Tests/SourceKitLSPTests/ConvertDocumentationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ fileprivate func convertDocumentation(
472472
)
473473
} catch {
474474
XCTFail(
475-
"textDocument/convertDocumentation failed at position \(marker): \(error.message)",
475+
"textDocument/convertDocumentation failed at position \(marker): \(error.localizedDescription)",
476476
file: file,
477477
line: line
478478
)

0 commit comments

Comments
 (0)