File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Core/Sources/Service/SuggestionCommandHandler Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ final class Settings: ObservableObject {
1414 init ( ) { }
1515}
1616
17- #warning("MUSTDO: Settings are not synced.")
1817struct SettingsView : View {
1918 @StateObject var settings = Settings ( )
2019 @State var editingRealtimeSuggestionDebounce : Double = UserDefaults . shared
Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ struct PseudoCommandHandler {
7070}
7171
7272private extension PseudoCommandHandler {
73- func getFileContent( ) async -> ( String , [ String ] , CursorPosition ) ? {
73+ func getFileContent( ) async
74+ -> ( content: String , lines: [ String ] , cursorPosition: CursorPosition ) ?
75+ {
7476 guard let xcode = ActiveApplicationMonitor . activeXcode else { return nil }
7577 let application = AXUIElementCreateApplication ( xcode. processIdentifier)
7678 guard let focusElement = application. focusedElement,
@@ -119,10 +121,10 @@ private extension PseudoCommandHandler {
119121 let content = await getFileContent ( )
120122 else { return nil }
121123 return . init(
122- content: content. 0 ,
123- lines: content. 1 ,
124+ content: content. content ,
125+ lines: content. lines ,
124126 uti: uti,
125- cursorPosition: content. 2 ,
127+ cursorPosition: content. cursorPosition ,
126128 tabSize: tabSize,
127129 indentSize: indentSize,
128130 usesTabsForIndentation: usesTabsForIndentation
You can’t perform that action at this time.
0 commit comments