Skip to content

Commit e6e6eeb

Browse files
committed
Rename to lastUpdateTime
1 parent d4fb901 commit e6e6eeb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Tool/Sources/Workspace/Filespace.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ public final class Filespace {
9292
// MARK: Life Cycle
9393

9494
public var isExpired: Bool {
95-
Environment.now().timeIntervalSince(lastSuggestionUpdateTime) > 60 * 3
95+
Environment.now().timeIntervalSince(lastUpdateTime) > 60 * 3
9696
}
9797

98-
private(set) var lastSuggestionUpdateTime: Date = Environment.now()
98+
private(set) var lastUpdateTime: Date = Environment.now()
9999
private var additionalProperties = FilespacePropertyValues()
100100
let fileSaveWatcher: FileSaveWatcher
101101
let onClose: (URL) -> Void
@@ -154,7 +154,7 @@ public final class Filespace {
154154
}
155155

156156
public func refreshUpdateTime() {
157-
lastSuggestionUpdateTime = Environment.now()
157+
lastUpdateTime = Environment.now()
158158
}
159159

160160
@WorkspaceActor

Tool/Sources/Workspace/Workspace.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public final class Workspace {
7272
public let workspaceURL: URL
7373
public let projectRootURL: URL
7474
public let openedFileRecoverableStorage: OpenedFileRecoverableStorage
75-
public private(set) var lastSuggestionUpdateTime = Environment.now()
75+
public private(set) var lastLastUpdateTime = Environment.now()
7676
public var isExpired: Bool {
77-
Environment.now().timeIntervalSince(lastSuggestionUpdateTime) > 60 * 60 * 1
77+
Environment.now().timeIntervalSince(lastLastUpdateTime) > 60 * 60 * 1
7878
}
7979

8080
public private(set) var filespaces = [URL: Filespace]()
@@ -113,7 +113,7 @@ public final class Workspace {
113113
}
114114

115115
public func refreshUpdateTime() {
116-
lastSuggestionUpdateTime = Environment.now()
116+
lastLastUpdateTime = Environment.now()
117117
}
118118

119119
@WorkspaceActor

0 commit comments

Comments
 (0)