Skip to content

Commit

Permalink
Don't add "Build All - Release" task to list of provided tasks (#1005)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
award999 authored Aug 8, 2024
1 parent 9f8cf10 commit 74a4447
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/tasks/SwiftTaskProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export async function getBuildAllTask(
task.source === "swift"
);
if (!task) {
throw Error("Build All Task does not exist");
task = createBuildAllTask(folderContext, release);
}

return task;
Expand Down Expand Up @@ -446,9 +446,8 @@ export class SwiftTaskProvider implements vscode.TaskProvider {
continue;
}

// Create both debug and release Build All tasks.
// Create debug Build All task.
tasks.push(createBuildAllTask(folderContext, false));
tasks.push(createBuildAllTask(folderContext, true));

const executables = folderContext.swiftPackage.executableProducts;
for (const executable of executables) {
Expand Down

0 comments on commit 74a4447

Please sign in to comment.