File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/vs/workbench/contrib/tasks/browser Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -362,6 +362,8 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
362362 const processContext = ProcessExecutionSupportedContext . bindTo ( this . _contextKeyService ) ;
363363 processContext . set ( process && ! isVirtual ) ;
364364 }
365+ // update tasks so an incomplete list isn't returned when getWorkspaceTasks is called
366+ this . _workspaceTasksPromise = undefined ;
365367 this . _onDidRegisterSupportedExecutions . fire ( ) ;
366368 }
367369
@@ -2201,6 +2203,9 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
22012203 }
22022204 await this . _waitForSupportedExecutions ;
22032205 await this . _whenTaskSystemReady ;
2206+ if ( this . _workspaceTasksPromise ) {
2207+ return this . _workspaceTasksPromise ;
2208+ }
22042209 return this . _updateWorkspaceTasks ( runSource ) ;
22052210 }
22062211
You can’t perform that action at this time.
0 commit comments