File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/vs/workbench/contrib/tasks/browser Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2747,7 +2747,16 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
27472747 return true ;
27482748 }
27492749
2750+ private async _ensureWorkspaceTasks ( ) : Promise < void > {
2751+ if ( ! this . _workspaceTasksPromise ) {
2752+ await this . getWorkspaceTasks ( ) ;
2753+ } else {
2754+ await this . _workspaceTasksPromise ;
2755+ }
2756+ }
2757+
27502758 private async _runTaskCommand ( filter ?: string | ITaskIdentifier ) : Promise < void > {
2759+ await this . _ensureWorkspaceTasks ( ) ;
27512760 if ( ! filter ) {
27522761 return this . _doRunTaskCommand ( ) ;
27532762 }
@@ -2905,7 +2914,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
29052914 title : strings . fetching
29062915 } ;
29072916 const promise = ( async ( ) => {
2908- await this . getWorkspaceTasks ( ) ;
2917+ await this . _ensureWorkspaceTasks ( ) ;
29092918 let taskGroupTasks : ( Task | ConfiguringTask ) [ ] = [ ] ;
29102919
29112920 async function runSingleTask ( task : Task | undefined , problemMatcherOptions : IProblemMatcherRunOptions | undefined , that : AbstractTaskService ) {
You can’t perform that action at this time.
0 commit comments