File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -131,10 +131,10 @@ public class RealtimeSuggestionController {
131131 for await notification in notificationsFromEditor {
132132 guard let self else { return }
133133 try Task . checkCancellation ( )
134- await cancelInFlightTasks ( )
135134
136135 switch notification. name {
137136 case kAXValueChangedNotification:
137+ await cancelInFlightTasks ( )
138138 self . triggerPrefetchDebounced ( )
139139 await self . notifyEditingFileChange ( editor: focusElement)
140140 case kAXSelectedTextChangedNotification:
@@ -210,7 +210,6 @@ public class RealtimeSuggestionController {
210210 let isEnabled = workspace. isSuggestionFeatureEnabled
211211 if !isEnabled { return }
212212 }
213-
214213 if Task. isCancelled { return }
215214
216215 Logger . service. info ( " Prefetch suggestions. " )
You can’t perform that action at this time.
0 commit comments