Procházet zdrojové kódy

Save files before starting AutoBuild (#13649)

ManuelMcLure před 5 roky
rodič
revize
8bc5817559

+ 3
- 0
buildroot/share/vscode/AutoBuildMarlin/extension.js Zobrazit soubor

@@ -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");

Loading…
Zrušit
Uložit