Skip to content

Commit c256218

Browse files
committed
Reset real-time suggestions state on Xcode quit
1 parent fe5aa78 commit c256218

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Core/Sources/Service/XPCService.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ public class XPCService: NSObject, XPCServiceProtocol {
2626

2727
deinit {
2828
let identifier = ObjectIdentifier(self)
29-
Task {
29+
Task { @ServiceActor in
30+
for (_, workspace) in workspaces {
31+
workspace.isRealtimeSuggestionEnabled = false
32+
}
3033
await AutoTrigger.shared.stop(by: identifier)
3134
}
3235
}

0 commit comments

Comments
 (0)