From 8bc581755904f285ab27f5cb105bb2e9ae823cc2 Mon Sep 17 00:00:00 2001 From: ManuelMcLure Date: Fri, 12 Apr 2019 10:33:16 -0700 Subject: [PATCH] Save files before starting AutoBuild (#13649) --- buildroot/share/vscode/AutoBuildMarlin/extension.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildroot/share/vscode/AutoBuildMarlin/extension.js b/buildroot/share/vscode/AutoBuildMarlin/extension.js index 5f1fb5c85..01198a62b 100644 --- a/buildroot/share/vscode/AutoBuildMarlin/extension.js +++ b/buildroot/share/vscode/AutoBuildMarlin/extension.js @@ -8,6 +8,7 @@ function activate(context) { var NEXT_TERM_ID = 1; var pio_build = vscode.commands.registerCommand('piobuild', function () { + vscode.commands.executeCommand('workbench.action.files.saveAll'); const terminal = vscode.window.createTerminal(`AB Build #${NEXT_TERM_ID++}`); terminal.show(true); terminal.sendText("python buildroot/share/atom/auto_build.py build"); @@ -18,11 +19,13 @@ function activate(context) { terminal.sendText("python buildroot/share/atom/auto_build.py clean"); }); var pio_upload = vscode.commands.registerCommand('pioupload', function () { + vscode.commands.executeCommand('workbench.action.files.saveAll'); const terminal = vscode.window.createTerminal(`AB Upload #${NEXT_TERM_ID++}`); terminal.show(true); terminal.sendText("python buildroot/share/atom/auto_build.py upload"); }); var pio_traceback = vscode.commands.registerCommand('piotraceback', function () { + vscode.commands.executeCommand('workbench.action.files.saveAll'); const terminal = vscode.window.createTerminal(`AB Traceback #${NEXT_TERM_ID++}`); terminal.show(true); terminal.sendText("python buildroot/share/atom/auto_build.py traceback");