Skip to content

Commit bdb13d4

Browse files
committed
Fix decoding issue
1 parent 715c004 commit bdb13d4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Tool/Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ let package = Package(
156156
dependencies: [
157157
"LanguageClient",
158158
.product(name: "Parsing", package: "swift-parsing"),
159+
.product(name: "CodableWrappers", package: "CodableWrappers"),
159160
]
160161
),
161162

Tool/Sources/SuggestionModel/CodeSuggestion.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Foundation
2+
import CodableWrappers
23

34
public struct CodeSuggestion: Codable, Equatable {
45
public init(
@@ -30,6 +31,6 @@ public struct CodeSuggestion: Codable, Equatable {
3031
/// The range of the original code that should be replaced.
3132
public var range: CursorRange
3233
/// A place to store comments inserted by middleware for debugging use.
33-
public var middlewareComments: [String]
34+
@FallbackDecoding<EmptyArray> public var middlewareComments: [String]
3435
}
3536

0 commit comments

Comments
 (0)