File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/vs/workbench/contrib/tasks/browser Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2756,8 +2756,16 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
27562756 return true ;
27572757 }
27582758
2759+ private async _ensureWorkspaceTasks ( ) : Promise < void > {
2760+ if ( ! this . _workspaceTasksPromise ) {
2761+ await this . getWorkspaceTasks ( ) ;
2762+ } else {
2763+ await this . _workspaceTasksPromise ;
2764+ }
2765+ }
2766+
27592767 private async _runTaskCommand ( filter ?: string | ITaskIdentifier ) : Promise < void > {
2760- await this . _waitForTaskSystem ( ) ;
2768+ await this . _ensureWorkspaceTasks ( ) ;
27612769 if ( ! filter ) {
27622770 return this . _doRunTaskCommand ( ) ;
27632771 }
@@ -2915,7 +2923,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
29152923 title : strings . fetching
29162924 } ;
29172925 const promise = ( async ( ) => {
2918- await this . _waitForTaskSystem ( ) ;
2926+ await this . _ensureWorkspaceTasks ( ) ;
29192927 let taskGroupTasks : ( Task | ConfiguringTask ) [ ] = [ ] ;
29202928
29212929 async function runSingleTask ( task : Task | undefined , problemMatcherOptions : IProblemMatcherRunOptions | undefined , that : AbstractTaskService ) {
You can’t perform that action at this time.
0 commit comments