Skip to content

Commit d8065c3

Browse files
committed
Move NoAccessToAccessibilityAPIError to XPCService.swift
1 parent d0e905d commit d8065c3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Core/Sources/Service/XPCService.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import AppKit
2-
import Environment
32
import Foundation
43
import GitHubCopilotService
54
import LanguageServerProtocol
@@ -206,3 +205,11 @@ public class XPCService: NSObject, XPCServiceProtocol {
206205
}
207206
}
208207

208+
struct NoAccessToAccessibilityAPIError: Error, LocalizedError {
209+
var errorDescription: String? {
210+
"Accessibility API permission is not granted. Please enable in System Settings.app."
211+
}
212+
213+
init() {}
214+
}
215+

0 commit comments

Comments
 (0)