File tree Expand file tree Collapse file tree
Core/Sources/SuggestionWidget/FeatureReducers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -454,6 +454,7 @@ public struct WidgetFeature: ReducerProtocol {
454454 state. focusingDocumentURL = xcodeInspector. realtimeActiveDocumentURL
455455 return . none
456456
457+ #warning("TODO: use function instead of action for high rate actions like this")
457458 case let . updateWindowLocation( animated) :
458459 guard let widgetLocation = generateWidgetLocation ( ) else { return . none }
459460 state. panelState. sharedPanelState. alignTopToAnchor = widgetLocation
@@ -523,6 +524,7 @@ public struct WidgetFeature: ReducerProtocol {
523524 if shouldDebounce {
524525 try await mainQueue. sleep ( for: . seconds( 0.2 ) )
525526 }
527+ try Task . checkCancellation ( )
526528 let task = Task { @MainActor in
527529 if let app = activeApplicationMonitor. activeApplication, app. isXcode {
528530 let application = AXUIElementCreateApplication ( app. processIdentifier)
You can’t perform that action at this time.
0 commit comments