Bläddra i källkod

Save files before starting AutoBuild (#13649)

ManuelMcLure 5 år sedan
förälder
incheckning
8bc5817559
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3
    0
      buildroot/share/vscode/AutoBuildMarlin/extension.js

+ 3
- 0
buildroot/share/vscode/AutoBuildMarlin/extension.js Visa fil

@@ -8,6 +8,7 @@ function activate(context) {
8 8
 
9 9
   var NEXT_TERM_ID = 1;
10 10
   var pio_build     = vscode.commands.registerCommand('piobuild',     function () {
11
+    vscode.commands.executeCommand('workbench.action.files.saveAll');
11 12
     const terminal = vscode.window.createTerminal(`AB Build #${NEXT_TERM_ID++}`);
12 13
     terminal.show(true);
13 14
     terminal.sendText("python buildroot/share/atom/auto_build.py build");
@@ -18,11 +19,13 @@ function activate(context) {
18 19
     terminal.sendText("python buildroot/share/atom/auto_build.py clean");
19 20
   });
20 21
   var pio_upload    = vscode.commands.registerCommand('pioupload',    function () {
22
+    vscode.commands.executeCommand('workbench.action.files.saveAll');
21 23
     const terminal = vscode.window.createTerminal(`AB Upload #${NEXT_TERM_ID++}`);
22 24
     terminal.show(true);
23 25
     terminal.sendText("python buildroot/share/atom/auto_build.py upload");
24 26
   });
25 27
   var pio_traceback = vscode.commands.registerCommand('piotraceback', function () {
28
+    vscode.commands.executeCommand('workbench.action.files.saveAll');
26 29
     const terminal = vscode.window.createTerminal(`AB Traceback #${NEXT_TERM_ID++}`);
27 30
     terminal.show(true);
28 31
     terminal.sendText("python buildroot/share/atom/auto_build.py traceback");

Laddar…
Avbryt
Spara