From 950fd0dd354095ed8c8486c165a422e8e54b6366 Mon Sep 17 00:00:00 2001 From: Wouter Hennen <62355975+Wouter01@users.noreply.github.com> Date: Mon, 26 Feb 2024 02:14:19 +0100 Subject: [PATCH 1/2] Make forgotten init public --- Sources/LanguageServerProtocol/ClientCapabilities.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/LanguageServerProtocol/ClientCapabilities.swift b/Sources/LanguageServerProtocol/ClientCapabilities.swift index ffb2ed2..3d3174b 100644 --- a/Sources/LanguageServerProtocol/ClientCapabilities.swift +++ b/Sources/LanguageServerProtocol/ClientCapabilities.swift @@ -61,7 +61,7 @@ public struct ShowMessageRequestClientCapabilities: Hashable, Codable, Sendable public var messageActionItem: MessageActionItemCapabilities - init(messageActionItem: MessageActionItemCapabilities) { + public init(messageActionItem: MessageActionItemCapabilities) { self.messageActionItem = messageActionItem } } From 54a4672e1c6bc2745fa7ebb6dcf47851cbe729ec Mon Sep 17 00:00:00 2001 From: Wouter Hennen <62355975+Wouter01@users.noreply.github.com> Date: Mon, 26 Feb 2024 02:17:11 +0100 Subject: [PATCH 2/2] Update ClientCapabilities.swift --- Sources/LanguageServerProtocol/ClientCapabilities.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/LanguageServerProtocol/ClientCapabilities.swift b/Sources/LanguageServerProtocol/ClientCapabilities.swift index 3d3174b..1075094 100644 --- a/Sources/LanguageServerProtocol/ClientCapabilities.swift +++ b/Sources/LanguageServerProtocol/ClientCapabilities.swift @@ -52,11 +52,19 @@ public typealias DidChangeWatchedFilesClientCapabilities = GenericDynamicRegistr public struct ShowDocumentClientCapabilities: Hashable, Codable, Sendable { public var support: Bool + + public init(support: Bool) { + self.support = support + } } public struct ShowMessageRequestClientCapabilities: Hashable, Codable, Sendable { public struct MessageActionItemCapabilities: Hashable, Codable, Sendable { public var additionalPropertiesSupport: Bool + + public init(additionalPropertiesSupport: Bool) { + self.additionalPropertiesSupport = additionalPropertiesSupport + } } public var messageActionItem: MessageActionItemCapabilities