Skip to content

Commit fe2c656

Browse files
committed
Remove the boostQoS trick
1 parent e6f96ce commit fe2c656

File tree

5 files changed

+0
-21
lines changed

5 files changed

+0
-21
lines changed

Copilot for Xcode/App.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ struct CopilotForXcodeApp: App {
1212
.preferredColorScheme(.dark)
1313
.onAppear {
1414
UserDefaults.setupDefaultSettings()
15-
Task {
16-
let service = try getService()
17-
await service.boostQoS()
18-
}
1915
}
2016
.environment(\.updateChecker, UpdateChecker(hostBundle: Bundle.main))
2117
}

Core/Sources/Client/AsyncXPCService.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ public struct AsyncXPCService {
1111
self.service = service
1212
}
1313

14-
public func boostQoS() async {
15-
let service = connection.remoteObjectProxyWithErrorHandler {
16-
Logger.client.error($0)
17-
} as! XPCServiceProtocol
18-
service.boostQoS {
19-
// never reply
20-
}
21-
}
22-
2314
public func checkStatus() async throws -> CopilotStatus {
2415
try await withXPCServiceConnected(connection: connection) {
2516
service, continuation in

Core/Sources/Service/XPCService.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ var workspaces = [URL: Workspace]()
2020
var inflightRealtimeSuggestionsTasks = Set<Task<Void, Never>>()
2121

2222
public class XPCService: NSObject, XPCServiceProtocol {
23-
var boostQoS = [Any]()
24-
25-
public func boostQoS(withReply reply: @escaping () -> Void) {
26-
boostQoS.append(reply)
27-
}
28-
2923
// MARK: - Service
3024

3125
public func getXPCServiceVersion(withReply reply: @escaping (String, String) -> Void) {

Core/Sources/XPCShared/XPCServiceProtocol.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import Foundation
33

44
@objc(XPCServiceProtocol)
55
public protocol XPCServiceProtocol {
6-
func boostQoS(withReply reply: @escaping () -> Void)
76
func checkStatus(withReply reply: @escaping (String?, Error?) -> Void)
87
func signInInitiate(withReply reply: @escaping (String?, String?, Error?) -> Void)
98
func signInConfirm(

EditorExtension/SourceEditorExtension.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class SourceEditorExtension: NSObject, XCSourceEditorExtension {
3939
try await Task.sleep(nanoseconds: 1_000_000_000)
4040
let service = try getService()
4141
_ = try await service.checkStatus()
42-
await service.boostQoS()
4342
}
4443
#endif
4544
}

0 commit comments

Comments
 (0)