We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8065c3 commit ea98260Copy full SHA for ea98260
1 file changed
Tool/Sources/Workspace/Workspace.swift
@@ -1,10 +1,13 @@
1
-import Environment
2
import Foundation
3
import Preferences
4
import SuggestionModel
5
import UserDefaultsObserver
6
import XcodeInspector
7
+enum Environment {
8
+ static var now = { Date() }
9
+}
10
+
11
public protocol WorkspacePropertyKey {
12
associatedtype Value
13
static func createDefaultValue() -> Value
@@ -58,6 +61,12 @@ public final class Workspace {
58
61
}
59
62
60
63
64
+ public struct CantFindWorkspaceError: Error, LocalizedError {
65
+ public var errorDescription: String? {
66
+ "Can't find workspace."
67
+ }
68
69
70
private var additionalProperties = WorkspacePropertyValues()
71
public internal(set) var plugins = [ObjectIdentifier: WorkspacePlugin]()
72
public let workspaceURL: URL
0 commit comments