File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,12 @@ package final actor SemanticIndexManager {
414
414
}
415
415
}
416
416
if let inProgressPrepareForEditorTask {
417
- logger. debug ( " Cancelling preparation of \( inProgressPrepareForEditorTask. document) because \( uri) was opened " )
417
+ // Cancel the in progress prepare for editor task to indicate that we are no longer interested in it.
418
+ // This will cancel the preparation of `inProgressPrepareForEditorTask`'s target if it hasn't started yet.
419
+ // (see comment at the end of `SemanticIndexManager.prepare`).
420
+ logger. debug (
421
+ " Marking preparation of \( inProgressPrepareForEditorTask. document) as no longer relevant because \( uri) was opened "
422
+ )
418
423
inProgressPrepareForEditorTask. task. cancel ( )
419
424
}
420
425
inProgressPrepareForEditorTask = InProgressPrepareForEditorTask (
Original file line number Diff line number Diff line change @@ -244,9 +244,9 @@ package actor QueuedTask<TaskDescription: TaskDescriptionProtocol> {
244
244
}
245
245
return await self . finalizeExecution ( )
246
246
}
247
+ _isExecuting. value = true
247
248
executionTask = task
248
249
executionTaskCreatedContinuation. yield ( task)
249
- _isExecuting. value = true
250
250
await executionStateChangedCallback ? ( self , . executing)
251
251
return await task. value
252
252
}
You can’t perform that action at this time.
0 commit comments