Skip to content

Commit 269212a

Browse files
committed
Use apple script instead of accessibility API to detect completion panel
Which is more correct and prompt
1 parent b894967 commit 269212a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/Sources/Service/RealtimeSuggestionController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public class RealtimeSuggestionController {
184184

185185
os_log(.info, "Prefetch suggestions.")
186186

187-
if !force, isCompletionPanelPresenting() {
187+
if !force, await !Environment.frontmostXcodeWindowIsEditor() {
188188
os_log(.info, "Completion panel is open, blocked.")
189189
return
190190
}

0 commit comments

Comments
 (0)