From cd943fea5f3d5560a440cff646bdba2457f6beaa Mon Sep 17 00:00:00 2001 From: Guillaume Peillex Date: Sat, 7 Dec 2024 14:04:04 +0100 Subject: [PATCH] Add optional target parameter to the ExtensionManager:buildWithTarget method --- src/extension.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index b22908de8..b5eefe92b 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1428,7 +1428,7 @@ export class ExtensionManager implements vscode.Disposable { return this.runCMakeCommandForAll(cmakeProject => cmakeProject.cleanRebuild(), this.ensureActiveBuildPreset, true); } - async buildWithTarget() { + async buildWithTarget(target?: string) { telemetry.logEvent("build", { command: "buildWithTarget", all: "false"}); this.cleanOutputChannel(); let activeProject: CMakeProject | undefined = this.getActiveProject(); @@ -1438,7 +1438,7 @@ export class ExtensionManager implements vscode.Disposable { return; // Error or nothing is opened } } else { - return activeProject.buildWithTarget(); + return activeProject.buildWithTarget(target); } }