Skip to content

Commit 08215af

Browse files
authored
Merge pull request #209 from DavidGoldman/fix_codingkey_error
Fix CodingKeys build error
2 parents beb284f + 76e34ef commit 08215af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/LanguageServerProtocol/SupportTypes/ServerCapabilities.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public struct TextDocumentSyncOptions: Codable, Hashable {
213213

214214
public init(from decoder: Decoder) throws {
215215
do {
216-
let container = try decoder.container(keyedBy: Self.CodingKeys)
216+
let container = try decoder.container(keyedBy: CodingKeys.self)
217217
self.openClose = try container.decodeIfPresent(Bool.self, forKey: .openClose)
218218
self.change = try container.decodeIfPresent(TextDocumentSyncKind.self, forKey: .change)
219219
self.willSave = try container.decodeIfPresent(Bool.self, forKey: .willSave)

0 commit comments

Comments
 (0)