We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbfdc1a commit 04d9b1aCopy full SHA for 04d9b1a
Core/Sources/Environment/Environment.swift
@@ -114,9 +114,7 @@ public enum Environment {
114
public static var fetchFocusedElementURI: () async throws -> URL = {
115
guard let xcode = ActiveApplicationMonitor.activeXcode
116
?? ActiveApplicationMonitor.latestXcode
117
- else {
118
- throw FailedToFetchFileURLError()
119
- }
+ else { return URL(fileURLWithPath: "/global") }
120
121
let application = AXUIElementCreateApplication(xcode.processIdentifier)
122
let focusedElement = application.focusedElement
0 commit comments