Skip to content

Commit a02b0f6

Browse files
committed
Fix compile command invocation
1 parent d85b430 commit a02b0f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/runtime.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class Runnable {
1515
private _signal: NodeJS.Signals | null = null;
1616
private _exitCode: number | null = null;
1717

18-
run(command: string, timeout?: number, cwd?: string, ...args: string[]) {
18+
run(command: string, timeout: number, cwd?: string, ...args: string[]) {
1919
this._process = child_process.spawn(command, args, { cwd, timeout });
2020
this._process.stdout.setEncoding('utf-8');
2121
this._process.stderr.setEncoding('utf-8');
@@ -106,7 +106,7 @@ export async function compile(
106106
context.subscriptions.push(compilationStatusItem);
107107

108108
const process = new Runnable();
109-
process.run(resolvedArgs[0], undefined, ...resolvedArgs.slice(1));
109+
process.run(resolvedArgs[0], 0, undefined, ...resolvedArgs.slice(1));
110110

111111
let err = '';
112112
process.process?.stderr.on('data', (data: string) => {

0 commit comments

Comments
 (0)