Skip to content

Commit 8b3275e

Browse files
authored
Merge pull request #1647 from ahoppen/6.0/decode-preperation-mode
[6.0] Decode a few keys in `SourceKitLSPOptions` that we missed before
2 parents 480bb0c + 75c70d9 commit 8b3275e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Sources/SKCore/SourceKitLSPOptions.swift

+8
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,10 @@ public struct SourceKitLSPOptions: Sendable, Codable {
379379
)
380380
self.generatedFilesPath = try container.decodeIfPresent(String.self, forKey: CodingKeys.generatedFilesPath)
381381
self.backgroundIndexing = try container.decodeIfPresent(Bool.self, forKey: CodingKeys.backgroundIndexing)
382+
self.backgroundPreparationMode = try container.decodeIfPresent(
383+
String.self,
384+
forKey: CodingKeys.backgroundPreparationMode
385+
)
382386
self.experimentalFeatures = try container.decodeIfPresent(
383387
Set<ExperimentalFeature>.self,
384388
forKey: CodingKeys.experimentalFeatures
@@ -391,5 +395,9 @@ public struct SourceKitLSPOptions: Sendable, Codable {
391395
Double.self,
392396
forKey: CodingKeys.workDoneProgressDebounceDuration
393397
)
398+
self.sourcekitdRequestTimeout = try container.decodeIfPresent(
399+
Double.self,
400+
forKey: CodingKeys.sourcekitdRequestTimeout
401+
)
394402
}
395403
}

0 commit comments

Comments
 (0)