Skip to content

Commit

Permalink
Add optional target parameter to the ExtensionManager:buildWithTarget…
Browse files Browse the repository at this point in the history
… method
  • Loading branch information
hippo91 committed Dec 21, 2024
1 parent 127d9ef commit cd943fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -1438,7 +1438,7 @@ export class ExtensionManager implements vscode.Disposable {
return; // Error or nothing is opened
}
} else {
return activeProject.buildWithTarget();
return activeProject.buildWithTarget(target);
}
}

Expand Down

0 comments on commit cd943fe

Please sign in to comment.