Skip to content

Commit 1094cb4

Browse files
committed
Format files
1 parent c444429 commit 1094cb4

File tree

14 files changed

+25
-22
lines changed

14 files changed

+25
-22
lines changed

Copilot for Xcode/SettingsView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct SettingsView: View {
1818
@StateObject var settings = Settings()
1919
@State var editingRealtimeSuggestionDebounce: Double = UserDefaults.shared
2020
.value(forKey: SettingsKey.realtimeSuggestionDebounce) as? Double ?? 0.7
21-
21+
2222
var body: some View {
2323
Section {
2424
Form {

Core/Sources/ActiveApplicationMonitor/ActiveApplicationMonitor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public final class ActiveApplicationMonitor {
2626
}
2727

2828
public static var activeApplication: NSRunningApplication? { shared.activeApplication }
29-
29+
3030
public static var activeXcode: NSRunningApplication? {
3131
if activeApplication?.bundleIdentifier == "com.apple.dt.Xcode" {
3232
return activeApplication

Core/Sources/DisplayLink/DisplayLink.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public actor DisplayLink {
99
_shared = DisplayLink()
1010
return _shared
1111
}
12+
1213
private var continuations: [UUID: AsyncStream<Void>.Continuation] = [:]
1314

1415
public static func createStream() -> AsyncStream<Void> {

Core/Sources/Environment/Environment.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ public struct NoAccessToAccessibilityAPIError: Error, LocalizedError {
77
public var errorDescription: String? {
88
"Accessibility API permission is not granted. Please enable in System Settings.app."
99
}
10+
1011
public init() {}
1112
}
1213

1314
public struct FailedToFetchFileURLError: Error, LocalizedError {
1415
public var errorDescription: String? {
1516
"Failed to fetch editing file url."
1617
}
18+
1719
public init() {}
1820
}
1921

Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import AppKit
2-
import SuggestionWidget
32
import Environment
3+
import SuggestionWidget
44

55
@MainActor
66
public final class GraphicalUserInterfaceController {
@@ -15,21 +15,21 @@ public final class GraphicalUserInterfaceController {
1515
await handler.presentNextSuggestion()
1616
}
1717
}
18-
18+
1919
suggestionWidget.onPreviousButtonTapped = {
2020
Task { @ServiceActor in
2121
let handler = PseudoCommandHandler()
2222
await handler.presentPreviousSuggestion()
2323
}
2424
}
25-
25+
2626
suggestionWidget.onRejectButtonTapped = {
2727
Task { @ServiceActor in
2828
let handler = PseudoCommandHandler()
2929
await handler.rejectSuggestions()
3030
}
3131
}
32-
32+
3333
suggestionWidget.onAcceptButtonTapped = {
3434
Task {
3535
try await Environment.triggerAction("Accept Suggestion")

Core/Sources/Service/Workspace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ extension Workspace {
169169
func rejectSuggestion(forFileAt fileURL: URL, editor: EditorContent?) {
170170
cancelInFlightRealtimeSuggestionRequests()
171171
lastTriggerDate = Environment.now()
172-
172+
173173
if let editor {
174174
filespaces[fileURL]?.uti = editor.uti
175175
filespaces[fileURL]?.tabSize = editor.tabSize

Core/Sources/SuggestionInjector/SuggestionInjector.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ public struct SuggestionAnalyzer {
182182
case currentLine
183183
case nextLine
184184
}
185-
185+
186186
var insertPosition: InsertPostion
187187
var commonPrefix: String?
188188
}
189-
189+
190190
func analyze() -> Result {
191191
fatalError()
192192
}

Core/Sources/SuggestionWidget/Styles.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ enum Style {
55
static var widgetWidth: Double { widgetHeight }
66
static let widgetPadding: Double = 4
77
}
8-

Core/Sources/SuggestionWidget/SuggestionPanelView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct SuggestionPanelView: View {
4747
Spacer()
4848
.frame(minHeight: 0, maxHeight: .infinity)
4949
.allowsHitTesting(false)
50-
50+
5151
ZStack(alignment: .topLeading) {
5252
VStack(spacing: 0) {
5353
ScrollView {

Core/Sources/SuggestionWidget/SuggestionWidgetController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public final class SuggestionWidgetController {
306306
return
307307
}
308308
}
309-
}
309+
}
310310

311311
hide()
312312
}

0 commit comments

Comments
 (0)