Skip to content

Commit 7e11b5d

Browse files
committed
1 parent eb736c1 commit 7e11b5d

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

.vscode/tasks.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,13 @@
198198
"windows": {
199199
"command": ".\\scripts\\code-server.bat"
200200
},
201-
"args": ["--no-launch", "--connection-token", "dev-token", "--port", "8080"],
201+
"args": [
202+
"--no-launch",
203+
"--connection-token",
204+
"dev-token",
205+
"--port",
206+
"8080"
207+
],
202208
"label": "Run code server",
203209
"isBackground": true,
204210
"problemMatcher": {
@@ -220,7 +226,12 @@
220226
"windows": {
221227
"command": ".\\scripts\\code-web.bat"
222228
},
223-
"args": ["--port", "8080", "--browser", "none"],
229+
"args": [
230+
"--port",
231+
"8080",
232+
"--browser",
233+
"none"
234+
],
224235
"label": "Run code web",
225236
"isBackground": true,
226237
"problemMatcher": {
@@ -268,7 +279,6 @@
268279
"detail": "node_modules/tsec/bin/tsec -p src/tsconfig.json --noEmit"
269280
},
270281
{
271-
// Used for monaco editor playground launch config
272282
"label": "Launch Http Server",
273283
"type": "shell",
274284
"command": "node_modules/.bin/ts-node -T ./scripts/playground-server",

src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,18 +3053,12 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
30533053
groupTasks = await this._findWorkspaceTasksInGroup(taskGroup, true);
30543054
}
30553055

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]);
30673059
}
3060+
// Multiple default tasks returned, show the quickPicker
3061+
return handleMultipleTasks(false);
30683062
})();
30693063
this._progressService.withProgress(options, () => promise);
30703064
}

0 commit comments

Comments
 (0)