File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ public extension AXUIElement {
3131 var description : String {
3232 ( try ? copyValue ( key: kAXDescriptionAttribute) ) ?? " "
3333 }
34+
35+ var label : String {
36+ ( try ? copyValue ( key: kAXLabelValueAttribute) ) ?? " "
37+ }
3438
3539 var isSourceEditor : Bool {
3640 description == " Source Editor "
Original file line number Diff line number Diff line change @@ -478,11 +478,13 @@ extension SuggestionWidgetController {
478478 }
479479 } else if var window = application. focusedWindow,
480480 var frame = application. focusedWindow? . rect,
481- frame. size. height > 200 ,
481+ frame. size. height > 300 ,
482482 let screen = NSScreen . screens. first ( where: { $0. frame. origin == . zero } ) ,
483483 let firstScreen = NSScreen . main
484484 {
485- if [ " open_quickly " ] . contains ( window. identifier) {
485+ if [ " open_quickly " ] . contains ( window. identifier)
486+ || [ " alert " ] . contains ( window. label)
487+ {
486488 // fallback to use workspace window
487489 guard let workspaceWindow = application. windows
488490 . first ( where: { $0. identifier == " Xcode.WorkspaceWindow " } ) ,
You can’t perform that action at this time.
0 commit comments