Skip to content

Commit b140270

Browse files
committed
Add toggle in host app for pre cache
1 parent 03e2679 commit b140270

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Copilot for Xcode/DebugView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import SwiftUI
55
final class DebugSettings: ObservableObject {
66
@AppStorage(\.disableLazyVStack)
77
var disableLazyVStack: Bool
8+
@AppStorage(\.preCacheOnFileOpen)
9+
var preCacheOnFileOpen: Bool
810
init() {}
911
}
1012

@@ -18,6 +20,10 @@ struct DebugSettingsView: View {
1820
Text("Disable LazyVStack")
1921
}
2022
.toggleStyle(.switch)
23+
Toggle(isOn: $settings.preCacheOnFileOpen) {
24+
Text("Cache editor information on file open")
25+
}
26+
.toggleStyle(.switch)
2127
}
2228
}.buttonStyle(.copilot)
2329
}

0 commit comments

Comments
 (0)