From 92a2830a284e4d3a5cdbc4edbe53bcdfd951c62a Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Sat, 3 Jan 2026 18:29:10 +0100 Subject: [PATCH] Mark `Connection.send` as `@_disfavoredOverload` Otherwise `Connection.send` is ambiguous once we pick up https://github.com/swiftlang/swift-tools-protocols/pull/28 --- Sources/LanguageServerProtocolExtensions/Connection+Send.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/LanguageServerProtocolExtensions/Connection+Send.swift b/Sources/LanguageServerProtocolExtensions/Connection+Send.swift index 1fee33fe..1118763b 100644 --- a/Sources/LanguageServerProtocolExtensions/Connection+Send.swift +++ b/Sources/LanguageServerProtocolExtensions/Connection+Send.swift @@ -23,6 +23,9 @@ extension Connection { /// - Warning: Because this message is `async`, it does not provide any ordering /// guarantees. If you need to guarantee that messages are sent in-order /// use the version with a completion handler. + // Disfavor this over Connection.send implemented in swift-tools-protocols by https://github.com/swiftlang/swift-tools-protocols/pull/28 + // TODO: Remove this file once we have updated the swift-tools-protocols dependency to include #28 + @_disfavoredOverload package func send(_ request: R) async throws -> R.Response { return try await withCancellableCheckedThrowingContinuation { continuation in return self.send(request) { result in