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
2747
2747
return true ;
2748
2748
}
2749
2749
2750
+ private async _ensureWorkspaceTasks ( ) : Promise < void > {
2751
+ if ( ! this . _workspaceTasksPromise ) {
2752
+ await this . getWorkspaceTasks ( ) ;
2753
+ } else {
2754
+ await this . _workspaceTasksPromise ;
2755
+ }
2756
+ }
2757
+
2750
2758
private async _runTaskCommand ( filter ?: string | ITaskIdentifier ) : Promise < void > {
2759
+ await this . _ensureWorkspaceTasks ( ) ;
2751
2760
if ( ! filter ) {
2752
2761
return this . _doRunTaskCommand ( ) ;
2753
2762
}
@@ -2905,7 +2914,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
2905
2914
title : strings . fetching
2906
2915
} ;
2907
2916
const promise = ( async ( ) => {
2908
- await this . getWorkspaceTasks ( ) ;
2917
+ await this . _ensureWorkspaceTasks ( ) ;
2909
2918
let taskGroupTasks : ( Task | ConfiguringTask ) [ ] = [ ] ;
2910
2919
2911
2920
async function runSingleTask ( task : Task | undefined , problemMatcherOptions : IProblemMatcherRunOptions | undefined , that : AbstractTaskService ) {
You can’t perform that action at this time.
0 commit comments