update the UI
This commit is contained in:
@@ -76,3 +76,10 @@ struct EditorHarness {
|
||||
store.dismissDiffOverlay = { overlays.diffDismissals += 1 }
|
||||
}
|
||||
}
|
||||
|
||||
extension EditorHarness {
|
||||
/// Unsaved edits on a file that is not open; opening another file never leaves these behind.
|
||||
func strand(_ path: String, disk: String, buffer: String) {
|
||||
store.states[path] = FileState(buffer: buffer, disk: disk)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user