Skip to content

Commit

Permalink
Export currently chosen device when opening the terminal (fix issue #15)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedelavergne-ledger committed May 15, 2024
1 parent 36d8920 commit aecbc34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/taskProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ export class TaskProvider implements vscode.TaskProvider {
}

private openTerminalExec(): string {
const exec = `docker exec -it -u 0 ${this.containerName} bash`;
// Get the Selected target SDK to export inside the container
let sdk: string = this.tgtSelector.getSelectedSDK();
const exec = `docker exec -it -u 0 -e "BOLOS_SDK=${sdk}" ${this.containerName} bash`;
return exec;
}

Expand Down

0 comments on commit aecbc34

Please sign in to comment.