We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1d3918 commit dee0a42Copy full SHA for dee0a42
Sources/Workspace/WorkspaceState.swift
@@ -259,8 +259,15 @@ public final class WorkspaceState: SimplePersistanceProtocol {
259
}
260
261
public func restore(from json: JSON) throws {
262
+ try restore(from: json, supportedSchemaVersion: WorkspaceState.schemaVersion)
263
+ }
264
+
265
+ public func restore(from json: JSON, supportedSchemaVersion: Int) throws {
266
dependencies = try ManagedDependencies(json: json.get("dependencies"))
- artifacts = try ManagedArtifacts(json: json.get("artifacts"))
267
268
+ if supportedSchemaVersion >= 4 {
269
+ artifacts = try ManagedArtifacts(json: json.get("artifacts"))
270
271
272
273
public func toJSON() -> JSON {
0 commit comments