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
2756
2756
return true ;
2757
2757
}
2758
2758
2759
+ private async _ensureWorkspaceTasks ( ) : Promise < void > {
2760
+ if ( ! this . _workspaceTasksPromise ) {
2761
+ await this . getWorkspaceTasks ( ) ;
2762
+ } else {
2763
+ await this . _workspaceTasksPromise ;
2764
+ }
2765
+ }
2766
+
2759
2767
private async _runTaskCommand ( filter ?: string | ITaskIdentifier ) : Promise < void > {
2760
- await this . _waitForTaskSystem ( ) ;
2768
+ await this . _ensureWorkspaceTasks ( ) ;
2761
2769
if ( ! filter ) {
2762
2770
return this . _doRunTaskCommand ( ) ;
2763
2771
}
@@ -2915,7 +2923,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
2915
2923
title : strings . fetching
2916
2924
} ;
2917
2925
const promise = ( async ( ) => {
2918
- await this . _waitForTaskSystem ( ) ;
2926
+ await this . _ensureWorkspaceTasks ( ) ;
2919
2927
let taskGroupTasks : ( Task | ConfiguringTask ) [ ] = [ ] ;
2920
2928
2921
2929
async function runSingleTask ( task : Task | undefined , problemMatcherOptions : IProblemMatcherRunOptions | undefined , that : AbstractTaskService ) {
You can’t perform that action at this time.
0 commit comments