Skip to content

Commit 870b8ae

Browse files
committed
Cleanup
1 parent ba57cb6 commit 870b8ae

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Copilot for Xcode/SettingsView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ final class Settings: ObservableObject {
1414
init() {}
1515
}
1616

17-
#warning("MUSTDO: Settings are not synced.")
1817
struct SettingsView: View {
1918
@StateObject var settings = Settings()
2019
@State var editingRealtimeSuggestionDebounce: Double = UserDefaults.shared

Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ struct PseudoCommandHandler {
7070
}
7171

7272
private 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

0 commit comments

Comments
 (0)