From b651ea8ed94516ecb65fe8189a6c318bebfeb8a6 Mon Sep 17 00:00:00 2001 From: Alexander Chernoskutov Date: Wed, 3 Nov 2021 13:47:23 +0500 Subject: [PATCH] Fix build cwd (#1374) --- src/arduino/arduino.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arduino/arduino.ts b/src/arduino/arduino.ts index 60bcecab..d12cff7d 100644 --- a/src/arduino/arduino.ts +++ b/src/arduino/arduino.ts @@ -767,7 +767,7 @@ export class ArduinoApp { return await util.spawn( this._settings.commandPath, args, - undefined, + { cwd: ArduinoWorkspace.rootPath }, { /*channel: arduinoChannel.channel,*/ stdout: stdoutcb, stderr: stderrcb }, ).then(async () => { const ret = await cleanup("ok");