From 3394c134c9e8ef1efd6c0210ab8fecdb62f410b6 Mon Sep 17 00:00:00 2001 From: Wouter Hennen <62355975+Wouter01@users.noreply.github.com> Date: Mon, 26 Feb 2024 11:53:30 +0100 Subject: [PATCH] Add extra initializers (#19) * Make forgotten init public * Update ClientCapabilities.swift --- .../LanguageServerProtocol/ClientCapabilities.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Sources/LanguageServerProtocol/ClientCapabilities.swift b/Sources/LanguageServerProtocol/ClientCapabilities.swift index ffb2ed2..1075094 100644 --- a/Sources/LanguageServerProtocol/ClientCapabilities.swift +++ b/Sources/LanguageServerProtocol/ClientCapabilities.swift @@ -52,16 +52,24 @@ 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 - init(messageActionItem: MessageActionItemCapabilities) { + public init(messageActionItem: MessageActionItemCapabilities) { self.messageActionItem = messageActionItem } }