Skip to content

Commit 74a4447

Browse files
authored
Don't add "Build All - Release" task to list of provided tasks (#1005)
With #1000 merged in, we are now showing the Release variant of the build all task in the list of provided tasks when running the "Run Task" command. We don't want that since only needed for debugging a test in release mode
1 parent 9f8cf10 commit 74a4447

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/tasks/SwiftTaskProvider.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export async function getBuildAllTask(
241241
task.source === "swift"
242242
);
243243
if (!task) {
244-
throw Error("Build All Task does not exist");
244+
task = createBuildAllTask(folderContext, release);
245245
}
246246

247247
return task;
@@ -446,9 +446,8 @@ export class SwiftTaskProvider implements vscode.TaskProvider {
446446
continue;
447447
}
448448

449-
// Create both debug and release Build All tasks.
449+
// Create debug Build All task.
450450
tasks.push(createBuildAllTask(folderContext, false));
451-
tasks.push(createBuildAllTask(folderContext, true));
452451

453452
const executables = folderContext.swiftPackage.executableProducts;
454453
for (const executable of executables) {

0 commit comments

Comments
 (0)