From 35a669797eb9e10e489173e855435196ffdf8c27 Mon Sep 17 00:00:00 2001 From: Lieven De Foor Date: Tue, 24 Mar 2026 16:43:45 +0100 Subject: [PATCH] Take "batch" setting from config into account --- src/ABLExec.ts | 2 +- src/ABLUnitRun.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ABLExec.ts b/src/ABLExec.ts index fb791c9e..c0411faf 100644 --- a/src/ABLExec.ts +++ b/src/ABLExec.ts @@ -52,7 +52,7 @@ function getDefaultCommand (cfg: ABLUnitConfig, dlc: IDlc, propath: PropathParse const executable = dlc.uri.fsPath.replace(/\\/g, '/') + '/bin/' + cfg.ablunitConfig.command.executable - const cmd = [ executable, '-b', '-p', execFile ] + const cmd = [ executable, ...(cfg.ablunitConfig.command.batch ? ['-b'] : []), '-p', execFile ] process.env['PROPATH'] = propath.toString().replace(/\$\{DLC\}/g, dlc.uri.fsPath.replace(/\\/g, '/')) diff --git a/src/ABLUnitRun.ts b/src/ABLUnitRun.ts index b3b44874..c9473ebe 100644 --- a/src/ABLUnitRun.ts +++ b/src/ABLUnitRun.ts @@ -124,7 +124,7 @@ function getDefaultCommand (res: ABLResults) { const executable = res.dlc.uri.fsPath.replace(/\\/g, '/') + '/bin/' + res.cfg.ablunitConfig.command.executable - const cmd = [ executable, '-b', '-p', res.wrapperUri.fsPath.replace(/\\/g, '/') ] + const cmd = [ executable, ...(res.cfg.ablunitConfig.command.batch ? ['-b'] : []), '-p', res.wrapperUri.fsPath.replace(/\\/g, '/') ] process.env['PROPATH'] = res.propath.toString().replace(/\$\{DLC\}/g, res.dlc.uri.fsPath.replace(/\\/g, '/'))