We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 420d57b commit cd616aaCopy full SHA for cd616aa
1 file changed
Core/Sources/Service/GUI/SuggestionPanelController.swift
@@ -48,6 +48,8 @@ final class SuggestionPanelController {
48
let application = AXUIElementCreateApplication(activeXcode.processIdentifier)
49
if let focusElement: AXUIElement = try? application
50
.copyValue(key: kAXFocusedUIElementAttribute),
51
+ let focusElementType: String = try? focusElement.copyValue(key: kAXDescriptionAttribute),
52
+ focusElementType == "Source Editor",
53
let parent: AXUIElement = try? focusElement.copyValue(key: kAXParentAttribute),
54
let positionValue: AXValue = try? parent
55
.copyValue(key: kAXPositionAttribute),
0 commit comments