Skip to content

Commit

Permalink
Add extra initializers (#19)
Browse files Browse the repository at this point in the history
* Make forgotten init public

* Update ClientCapabilities.swift
Wouter01 authored Feb 26, 2024
1 parent f5a53e0 commit 3394c13
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Sources/LanguageServerProtocol/ClientCapabilities.swift
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit 3394c13

Please sign in to comment.