Skip to content

Commit 65669f6

Browse files
authored
Merge branch 'main' into win-gh-actions
2 parents 97514d8 + c3e87fd commit 65669f6

File tree

15 files changed

+322
-109
lines changed

15 files changed

+322
-109
lines changed

package-lock.json

Lines changed: 86 additions & 86 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,8 +1302,8 @@
13021302
"@types/sinon-chai": "^3.2.12",
13031303
"@types/vscode": "^1.88.0",
13041304
"@types/xml2js": "^0.4.14",
1305-
"@typescript-eslint/eslint-plugin": "^8.13.0",
1306-
"@typescript-eslint/parser": "^8.13.0",
1305+
"@typescript-eslint/eslint-plugin": "^8.14.0",
1306+
"@typescript-eslint/parser": "^8.14.0",
13071307
"@vscode/test-cli": "^0.0.10",
13081308
"@vscode/test-electron": "^2.4.1",
13091309
"@vscode/vsce": "^2.32.0",

src/commands.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ export function registerToolchainCommands(
6464
];
6565
}
6666

67+
export enum Commands {
68+
RUN = "swift.run",
69+
DEBUG = "swift.debug",
70+
CLEAN_BUILD = "swift.cleanBuild",
71+
}
72+
6773
/**
6874
* Registers this extension's commands in the given {@link vscode.ExtensionContext context}.
6975
*/
@@ -74,9 +80,9 @@ export function register(ctx: WorkspaceContext): vscode.Disposable[] {
7480
resolveDependencies(ctx)
7581
),
7682
vscode.commands.registerCommand("swift.updateDependencies", () => updateDependencies(ctx)),
77-
vscode.commands.registerCommand("swift.run", () => runBuild(ctx)),
78-
vscode.commands.registerCommand("swift.debug", () => debugBuild(ctx)),
79-
vscode.commands.registerCommand("swift.cleanBuild", () => cleanBuild(ctx)),
83+
vscode.commands.registerCommand(Commands.RUN, () => runBuild(ctx)),
84+
vscode.commands.registerCommand(Commands.DEBUG, () => debugBuild(ctx)),
85+
vscode.commands.registerCommand(Commands.CLEAN_BUILD, () => cleanBuild(ctx)),
8086
vscode.commands.registerCommand("swift.runTestsMultipleTimes", item => {
8187
if (ctx.currentFolder) {
8288
return runTestMultipleTimes(ctx.currentFolder, item, false);

src/commands/build.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ import { FolderContext } from "../FolderContext";
2323
* Executes a {@link vscode.Task task} to run swift target.
2424
*/
2525
export async function runBuild(ctx: WorkspaceContext) {
26-
await debugBuildWithOptions(ctx, { noDebug: true });
26+
return await debugBuildWithOptions(ctx, { noDebug: true });
2727
}
2828

2929
/**
3030
* Executes a {@link vscode.Task task} to debug swift target.
3131
*/
3232
export async function debugBuild(ctx: WorkspaceContext) {
33-
await debugBuildWithOptions(ctx, {});
33+
return await debugBuildWithOptions(ctx, {});
3434
}
3535

3636
/**
@@ -41,7 +41,7 @@ export async function cleanBuild(ctx: WorkspaceContext) {
4141
if (!current) {
4242
return;
4343
}
44-
await folderCleanBuild(current);
44+
return await folderCleanBuild(current);
4545
}
4646

4747
/**
@@ -62,7 +62,7 @@ export async function folderCleanBuild(folderContext: FolderContext) {
6262
folderContext.workspaceContext.toolchain
6363
);
6464

65-
await executeTaskWithUI(task, "Clean Build", folderContext);
65+
return await executeTaskWithUI(task, "Clean Build", folderContext);
6666
}
6767

6868
/**

0 commit comments

Comments
 (0)