mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-21 05:37:49 -06:00
AutoBuild tweaks
This commit is contained in:
parent
a9c259c77a
commit
1e57c6e6e3
3 changed files with 57 additions and 49 deletions
|
@ -7,34 +7,34 @@ function activate(context) {
|
|||
console.log('Extension "AutoBuildMarlin" is now active!');
|
||||
|
||||
var NEXT_TERM_ID = 1;
|
||||
var pio_build = vscode.commands.registerCommand('piobuild', function () {
|
||||
var mf_build = vscode.commands.registerCommand('mfbuild', function () {
|
||||
vscode.commands.executeCommand('workbench.action.files.saveAll');
|
||||
const terminal = vscode.window.createTerminal(`AB Build #${NEXT_TERM_ID++}`);
|
||||
const terminal = vscode.window.createTerminal(`Marlin Build #${NEXT_TERM_ID++}`);
|
||||
terminal.show(true);
|
||||
terminal.sendText("python buildroot/share/atom/auto_build.py build");
|
||||
});
|
||||
var pio_clean = vscode.commands.registerCommand('pioclean', function () {
|
||||
const terminal = vscode.window.createTerminal(`AB Clean #${NEXT_TERM_ID++}`);
|
||||
terminal.show(true);
|
||||
terminal.sendText("python buildroot/share/atom/auto_build.py clean");
|
||||
});
|
||||
var pio_upload = vscode.commands.registerCommand('pioupload', function () {
|
||||
var mf_upload = vscode.commands.registerCommand('mfupload', function () {
|
||||
vscode.commands.executeCommand('workbench.action.files.saveAll');
|
||||
const terminal = vscode.window.createTerminal(`AB Upload #${NEXT_TERM_ID++}`);
|
||||
const terminal = vscode.window.createTerminal(`Marlin 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 () {
|
||||
var mf_traceback = vscode.commands.registerCommand('mftraceback', function () {
|
||||
vscode.commands.executeCommand('workbench.action.files.saveAll');
|
||||
const terminal = vscode.window.createTerminal(`AB Traceback #${NEXT_TERM_ID++}`);
|
||||
const terminal = vscode.window.createTerminal(`Marlin Traceback #${NEXT_TERM_ID++}`);
|
||||
terminal.show(true);
|
||||
terminal.sendText("python buildroot/share/atom/auto_build.py traceback");
|
||||
});
|
||||
var mf_clean = vscode.commands.registerCommand('mfclean', function () {
|
||||
const terminal = vscode.window.createTerminal(`Marlin Clean #${NEXT_TERM_ID++}`);
|
||||
terminal.show(true);
|
||||
terminal.sendText("python buildroot/share/atom/auto_build.py clean");
|
||||
});
|
||||
|
||||
context.subscriptions.push(pio_build);
|
||||
context.subscriptions.push(pio_clean);
|
||||
context.subscriptions.push(pio_upload);
|
||||
context.subscriptions.push(pio_traceback);
|
||||
context.subscriptions.push(mf_build);
|
||||
context.subscriptions.push(mf_upload);
|
||||
context.subscriptions.push(mf_traceback);
|
||||
context.subscriptions.push(mf_clean);
|
||||
}
|
||||
exports.activate = activate;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue