Skip to content

Commit 58fafe4

Browse files
committed
Fix output pane using brickrun -r
To not break existing users, it is important to keep the old behavior for debugging in the output pane.
1 parent f580b58 commit 58fafe4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/extension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ async function handleCustomDebugEvent(event: vscode.DebugSessionCustomEvent): Pr
144144
// run the program
145145
try {
146146
const dirname = path.posix.dirname(args.program);
147-
const command = `brickrun -r --directory="${dirname}" "${args.program}"`;
148147
if (args.interactiveTerminal) {
148+
const command = `brickrun -r --directory="${dirname}" "${args.program}"`;
149149
const config = vscode.workspace.getConfiguration(`terminal.integrated.env.${getPlatform()}`);
150150
const termEnv = config.get<string>('TERM');
151151
const env = {
@@ -213,6 +213,7 @@ async function handleCustomDebugEvent(event: vscode.DebugSessionCustomEvent): Pr
213213
event.session.customRequest('ev3devBrowser.debugger.thread', 'started');
214214
}
215215
else {
216+
const command = `brickrun --directory="${dirname}" "${args.program}"`;
216217
output.show(true);
217218
output.clear();
218219
output.appendLine(`Starting: ${command}`);

0 commit comments

Comments
 (0)