Skip to content

Commit cc49801

Browse files
committed
Format files
1 parent 2a2ee46 commit cc49801

File tree

9 files changed

+12
-11
lines changed

9 files changed

+12
-11
lines changed

Copilot for Xcode/SettingsView.swift

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

Core/Sources/AXExtension/AXUIElement.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public extension AXUIElement {
5151
}
5252
return nil
5353
}
54-
54+
5555
var size: CGSize? {
5656
guard let value: AXValue = try? copyValue(key: kAXSizeAttribute)
5757
else { return nil }
@@ -61,7 +61,7 @@ public extension AXUIElement {
6161
}
6262
return nil
6363
}
64-
64+
6565
var rect: CGRect? {
6666
guard let position, let size else { return nil }
6767
return .init(origin: position, size: size)
@@ -126,7 +126,7 @@ public extension AXUIElement {
126126
}
127127
return nil
128128
}
129-
129+
130130
var verticalScrollBar: AXUIElement? {
131131
try? copyValue(key: kAXVerticalScrollBarAttribute)
132132
}

Core/Sources/Client/XPCService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
2+
import Logger
23
import os.log
34
import XPCShared
4-
import Logger
55

66
let shared = XPCService()
77

Core/Sources/Service/RealtimeSuggestionController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public class RealtimeSuggestionController {
192192
if Task.isCancelled { return }
193193

194194
Logger.service.info("Prefetch suggestions.")
195-
195+
196196
if !force, isCommentMode, await !Environment.frontmostXcodeWindowIsEditor() {
197197
Logger.service.info("Completion panel is open, blocked.")
198198
return

Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ struct WindowBaseCommandHandler: SuggestionCommandHandler {
138138
func acceptSuggestion(editor: EditorContent) async throws -> UpdatedContent? {
139139
presenter.markAsProcessing(true)
140140
defer { presenter.markAsProcessing(false) }
141-
141+
142142
do {
143143
let result = try await CommentBaseCommandHandler().acceptSuggestion(editor: editor)
144144
Task {

Core/Sources/Service/Workspace.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ final class Filespace {
1313
}
1414

1515
let fileURL: URL
16-
private(set) lazy var language: String = languageIdentifierFromFileURL(fileURL)?.rawValue ?? "plaintext"
16+
private(set) lazy var language: String = languageIdentifierFromFileURL(fileURL)?
17+
.rawValue ?? "plaintext"
1718
var suggestions: [CopilotCompletion] = [] {
1819
didSet { lastSuggestionUpdateTime = Environment.now() }
1920
}

Core/Sources/SuggestionWidget/SuggestionPanelView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct SuggestionPanelView: View {
8282
}
8383
.allowsHitTesting(viewModel.isPanelDisplayed && !viewModel.suggestion.isEmpty)
8484
.preferredColorScheme(.dark)
85-
85+
8686
if viewModel.alignTopToAnchor {
8787
Spacer()
8888
.frame(minHeight: 0, maxHeight: .infinity)

Core/Sources/SuggestionWidget/WidgetView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ struct WidgetView: View {
7676
}
7777
}
7878
}
79-
79+
8080
func refreshRing() {
8181
Task {
8282
await Task.yield()

ExtensionService/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSWindowDelegate {
2222

2323
func applicationDidFinishLaunching(_: Notification) {
2424
if ProcessInfo.processInfo.environment["IS_UNIT_TEST"] == "YES" { return }
25-
25+
2626
_ = GraphicalUserInterfaceController.shared
2727
_ = RealtimeSuggestionController.shared
2828
UserDefaults.setupDefaultSettings()

0 commit comments

Comments
 (0)