We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5ed510 commit 3d0c043Copy full SHA for 3d0c043
1 file changed
Core/Sources/Service/RealtimeSuggestionController.swift
@@ -131,10 +131,10 @@ public class RealtimeSuggestionController {
131
for await notification in notificationsFromEditor {
132
guard let self else { return }
133
try Task.checkCancellation()
134
- await cancelInFlightTasks()
135
136
switch notification.name {
137
case kAXValueChangedNotification:
+ await cancelInFlightTasks()
138
self.triggerPrefetchDebounced()
139
await self.notifyEditingFileChange(editor: focusElement)
140
case kAXSelectedTextChangedNotification:
@@ -210,7 +210,6 @@ public class RealtimeSuggestionController {
210
let isEnabled = workspace.isSuggestionFeatureEnabled
211
if !isEnabled { return }
212
}
213
-
214
if Task.isCancelled { return }
215
216
Logger.service.info("Prefetch suggestions.")
0 commit comments