Skip to content

Commit 027959d

Browse files
committed
Fix typos
1 parent 6ab703e commit 027959d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/Sources/SuggestionWidget/SuggestionWidgetController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ extension SuggestionWidgetController {
373373
sourceEditorMonitorTask = nil
374374
observeEditorChangeIfNeeded(app)
375375

376-
guard let fileURL = await try? await Environment.fetchFocusedElementURI() else {
376+
guard let fileURL = try? await Environment.fetchFocusedElementURI() else {
377377
continue
378378
}
379379

@@ -541,7 +541,7 @@ extension SuggestionWidgetController {
541541
{
542542
let noFocus = {
543543
guard let xcode = ActiveApplicationMonitor.latestXcode else { return true }
544-
let application = AXUIElementCreateApplication(app.processIdentifier)
544+
let application = AXUIElementCreateApplication(xcode.processIdentifier)
545545
return application
546546
.focusedWindow == nil || (application.focusedWindow?.role == "AXWindow")
547547
}()

0 commit comments

Comments
 (0)