File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
src/vs/workbench/contrib/tasks/browser Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -3053,18 +3053,12 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
3053
3053
groupTasks = await this . _findWorkspaceTasksInGroup ( taskGroup , true ) ;
3054
3054
}
3055
3055
3056
- switch ( groupTasks . length ) {
3057
- case 0 :
3058
- // No tasks found, prompt to configure
3059
- configure . apply ( this ) ;
3060
- break ;
3061
- case 1 :
3062
- // A single default task was returned, just run it directly
3063
- return resolveTaskAndRun ( groupTasks [ 0 ] ) ;
3064
- default :
3065
- // Multiple default tasks returned, show the quickPicker
3066
- return handleMultipleTasks ( false ) ;
3056
+ if ( groupTasks . length === 1 ) {
3057
+ // A single default task was returned, just run it directly
3058
+ return resolveTaskAndRun ( groupTasks [ 0 ] ) ;
3067
3059
}
3060
+ // Multiple default tasks returned, show the quickPicker
3061
+ return handleMultipleTasks ( false ) ;
3068
3062
} ) ( ) ;
3069
3063
this . _progressService . withProgress ( options , ( ) => promise ) ;
3070
3064
}
You can’t perform that action at this time.
0 commit comments