From a9e2490c44b05c333db4403ad83b89db1a963da5 Mon Sep 17 00:00:00 2001 From: Owen Voorhees Date: Mon, 13 Oct 2025 12:10:14 -0700 Subject: [PATCH] CustomLogStringConvertible should be SourceKit-LSP SPI --- .../DocumentURI+CustomLogStringConvertible.swift | 2 +- Sources/SKLogging/CustomLogStringConvertible.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/LanguageServerProtocolTransport/DocumentURI+CustomLogStringConvertible.swift b/Sources/LanguageServerProtocolTransport/DocumentURI+CustomLogStringConvertible.swift index 7fb87cba2..5ab6212a2 100644 --- a/Sources/LanguageServerProtocolTransport/DocumentURI+CustomLogStringConvertible.swift +++ b/Sources/LanguageServerProtocolTransport/DocumentURI+CustomLogStringConvertible.swift @@ -20,4 +20,4 @@ extension DocumentURI { return "" } } -extension DocumentURI: SKLogging.CustomLogStringConvertible {} +@_spi(SourceKitLSP) extension DocumentURI: SKLogging.CustomLogStringConvertible {} diff --git a/Sources/SKLogging/CustomLogStringConvertible.swift b/Sources/SKLogging/CustomLogStringConvertible.swift index c1f0861e9..95c104088 100644 --- a/Sources/SKLogging/CustomLogStringConvertible.swift +++ b/Sources/SKLogging/CustomLogStringConvertible.swift @@ -14,7 +14,7 @@ public import Foundation /// An object that can printed for logging and also offers a redacted description /// when logging in contexts in which private information shouldn't be captured. -public protocol CustomLogStringConvertible: CustomStringConvertible, Sendable { +@_spi(SourceKitLSP) public protocol CustomLogStringConvertible: CustomStringConvertible, Sendable { /// A full description of the object. var description: String { get } @@ -86,7 +86,7 @@ private struct OptionalWrapper: CustomLogStringConvertible where Wrappe } } -extension Optional where Wrapped: CustomLogStringConvertible { +@_spi(SourceKitLSP) extension Optional where Wrapped: CustomLogStringConvertible { @_spi(SourceKitLSP) public var forLogging: CustomLogStringConvertibleWrapper { return CustomLogStringConvertibleWrapper(OptionalWrapper(optional: self)) }