@ -1,2 +0,0 @@ |
|||||
out |
|
||||
node_modules |
|
@ -1,9 +0,0 @@ |
|||||
.vscode/** |
|
||||
.vscode-test/** |
|
||||
out/test/** |
|
||||
test/** |
|
||||
src/** |
|
||||
**/*.map |
|
||||
.gitignore |
|
||||
tsconfig.json |
|
||||
vsc-extension-quickstart.md |
|
@ -1,40 +0,0 @@ |
|||||
# Auto Build Marlin |
|
||||
|
|
||||
"AutoBuildMarlin" is a *Visual Studio Code* extension that provides a one-button interface to build and upload Marlin Firmware to your selected `MOTHERBOARD`, removing the need to edit your `platformio.ini` file or scroll through a long list of Marlin environments. |
|
||||
|
|
||||
## Get PlatformIO |
|
||||
|
|
||||
Before you install AutoBuildMarlin you'll first need to [Install PlatformIO in VSCode](http://marlinfw.org/docs/basics/install_platformio_vscode.html). Once you have followed these instructions, continue below. |
|
||||
|
|
||||
## Installing This Extension |
|
||||
|
|
||||
- [Download Marlin Firmware](http://marlinfw.org/meta/download/) and unzip it to your documents folder. |
|
||||
- Open the directory `buildroot/share/vscode` and copy the "`AutoBuildMarlin`" folder to **the *Visual Studio Code* `extensions` directory**. |
|
||||
- Relaunch *Visual Studio Code* to complete the installation. |
|
||||
|
|
||||
### To find your `extensions` directory: |
|
||||
|
|
||||
- **Windows** - Use Windows Explorer's address bar to open `C:/Users/USERNAME/.vscode/extensions`. |
|
||||
- **Mac** - Use the Finder's `Go` menu to open `~/.vscode/extensions`. |
|
||||
- **Linux** - In the Terminal type `open ~/.vscode/extensions`. |
|
||||
|
|
||||
## Usage |
|
||||
|
|
||||
- Open up the downloaded *Marlin Firmware* project folder (***NOT the "Marlin" folder within***) in *Visual Studio Code*. (You may also use the **Import Project…** option from the "PlaformIO Home" page.) |
|
||||
|
|
||||
- With Marlin open, the "File Explorer" should be firmly rooted in your Marlin Firmware folder: |
|
||||
|
|
||||
![](https://github.com/MarlinFirmware/Marlin/raw/bugfix-2.0.x/buildroot/share/vscode/AutoBuildMarlin/img/Activity_bar.png) |
|
||||
|
|
||||
- Click the **Marlin Auto Build** icon ![AutoBuild Icon](https://github.com/MarlinFirmware/Marlin/raw/bugfix-2.0.x/buildroot/share/vscode/AutoBuildMarlin/img/AB_icon.png) in the Activities Bar (on the left side of *Visual Studio Code* window) to bring up the **Marlin Auto Build** options bar. |
|
||||
|
|
||||
![](https://github.com/MarlinFirmware/Marlin/raw/bugfix-2.0.x/buildroot/share/vscode/AutoBuildMarlin/img/AB_menu.png) |
|
||||
|
|
||||
- Click one of the four icons |
|
||||
|
|
||||
Icon|Action |
|
||||
----|------ |
|
||||
![](https://github.com/MarlinFirmware/Marlin/raw/bugfix-2.0.x/buildroot/share/vscode/AutoBuildMarlin/img/B_small.png)|Start **Marlin Build** to test your Marlin build |
|
||||
![](https://github.com/MarlinFirmware/Marlin/raw/bugfix-2.0.x/buildroot/share/vscode/AutoBuildMarlin/img/U_small.png)|Start **Marlin Upload** to install Marlin on your board |
|
||||
![](https://github.com/MarlinFirmware/Marlin/raw/bugfix-2.0.x/buildroot/share/vscode/AutoBuildMarlin/img/T_small.png)|Start **Marlin Upload (traceback)** to install Marlin with debugging |
|
||||
![](https://github.com/MarlinFirmware/Marlin/raw/bugfix-2.0.x/buildroot/share/vscode/AutoBuildMarlin/img/C_small.png)|Start **Marlin Clean** to delete old build files |
|
@ -1,44 +0,0 @@ |
|||||
'use strict'; |
|
||||
|
|
||||
var vscode = require('vscode'); |
|
||||
|
|
||||
function activate(context) { |
|
||||
|
|
||||
console.log('Extension "AutoBuildMarlin" is now active!'); |
|
||||
|
|
||||
var NEXT_TERM_ID = 1; |
|
||||
var mf_build = vscode.commands.registerCommand('mfbuild', function () { |
|
||||
vscode.commands.executeCommand('workbench.action.files.saveAll'); |
|
||||
const terminal = vscode.window.createTerminal(`Marlin Build #${NEXT_TERM_ID++}`); |
|
||||
terminal.show(true); |
|
||||
terminal.sendText("python buildroot/share/atom/auto_build.py build"); |
|
||||
}); |
|
||||
var mf_upload = vscode.commands.registerCommand('mfupload', function () { |
|
||||
vscode.commands.executeCommand('workbench.action.files.saveAll'); |
|
||||
const terminal = vscode.window.createTerminal(`Marlin Upload #${NEXT_TERM_ID++}`); |
|
||||
terminal.show(true); |
|
||||
terminal.sendText("python buildroot/share/atom/auto_build.py upload"); |
|
||||
}); |
|
||||
var mf_traceback = vscode.commands.registerCommand('mftraceback', function () { |
|
||||
vscode.commands.executeCommand('workbench.action.files.saveAll'); |
|
||||
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(mf_build); |
|
||||
context.subscriptions.push(mf_upload); |
|
||||
context.subscriptions.push(mf_traceback); |
|
||||
context.subscriptions.push(mf_clean); |
|
||||
} |
|
||||
exports.activate = activate; |
|
||||
|
|
||||
// this method is called when your extension is deactivated
|
|
||||
function deactivate() { |
|
||||
} |
|
||||
exports.deactivate = deactivate; |
|
Before Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 20 KiB |
@ -1,117 +0,0 @@ |
|||||
{ |
|
||||
"name": "auto-build", |
|
||||
"displayName": "Auto Build Marlin", |
|
||||
"description": "Auto Build Marlin for VS code", |
|
||||
"version": "2.0.0", |
|
||||
"publisher": "marlinfirmware", |
|
||||
"icon": "logo.svg", |
|
||||
"engines": { |
|
||||
"vscode": "^1.32.0" |
|
||||
}, |
|
||||
"enableProposedApi": true, |
|
||||
"categories": [ |
|
||||
"Other" |
|
||||
], |
|
||||
"activationEvents": [ |
|
||||
"onCommand:mfbuild", |
|
||||
"onCommand:mfclean", |
|
||||
"onCommand:mfupload", |
|
||||
"onCommand:mftraceback" |
|
||||
], |
|
||||
"main": "./extension", |
|
||||
"contributes": { |
|
||||
"viewsContainers": { |
|
||||
"activitybar": [ |
|
||||
{ |
|
||||
"id": "autoBuildVC", |
|
||||
"title": "Marlin Build", |
|
||||
"icon": "resources/AB.svg" |
|
||||
} |
|
||||
] |
|
||||
}, |
|
||||
"views": { |
|
||||
"autoBuildVC": [ |
|
||||
{ |
|
||||
"id": "autoBuildView", |
|
||||
"name": "Build…" |
|
||||
}, |
|
||||
{ |
|
||||
"id": "marlinView", |
|
||||
"name": "Marlin Info" |
|
||||
} |
|
||||
] |
|
||||
}, |
|
||||
"commands": [ |
|
||||
{ |
|
||||
"command": "mfbuild", |
|
||||
"title": "Build", |
|
||||
"icon": { |
|
||||
"light": "resources/B48x48_light.svg", |
|
||||
"dark": "resources/B48x48_dark.svg" |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"command": "mfupload", |
|
||||
"title": "Upload", |
|
||||
"icon": { |
|
||||
"light": "resources/U48x48_light.svg", |
|
||||
"dark": "resources/U48x48_dark.svg" |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"command": "mftraceback", |
|
||||
"title": "Upload (traceback)", |
|
||||
"icon": { |
|
||||
"light": "resources/T48x48_light.svg", |
|
||||
"dark": "resources/T48x48_dark.svg" |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"command": "mfclean", |
|
||||
"title": "Clean", |
|
||||
"icon": { |
|
||||
"light": "resources/C48x48_light.svg", |
|
||||
"dark": "resources/C48x48_dark.svg" |
|
||||
} |
|
||||
} |
|
||||
], |
|
||||
"menus": { |
|
||||
"view/title": [ |
|
||||
{ |
|
||||
"command": "mfbuild", |
|
||||
"group": "navigation@1", |
|
||||
"when": "view == autoBuildView || view == marlinView" |
|
||||
}, |
|
||||
{ |
|
||||
"command": "mfupload", |
|
||||
"group": "navigation@2", |
|
||||
"when": "view == autoBuildView || view == marlinView" |
|
||||
}, |
|
||||
{ |
|
||||
"command": "mftraceback", |
|
||||
"group": "navigation@3", |
|
||||
"when": "view == autoBuildView || view == marlinView" |
|
||||
}, |
|
||||
{ |
|
||||
"command": "mfclean", |
|
||||
"group": "navigation@4", |
|
||||
"when": "view == autoBuildView || view == marlinView" |
|
||||
} |
|
||||
] |
|
||||
} |
|
||||
}, |
|
||||
"scripts": { |
|
||||
"vscode:prepublish": "npm run compile", |
|
||||
"compile": "tsc -p ./", |
|
||||
"watch": "tsc -watch -p ./", |
|
||||
"postinstall": "node ./node_modules/vscode/bin/install", |
|
||||
"test": "npm run compile && node ./node_modules/vscode/bin/test" |
|
||||
}, |
|
||||
"devDependencies": { |
|
||||
"@types/vscode": "^1.34.0", |
|
||||
"typescript": "^3.5.1", |
|
||||
"tslint": "^5.16.0", |
|
||||
"@types/node": "^10.14.17", |
|
||||
"@types/mocha": "^2.2.42" |
|
||||
} |
|
||||
} |
|
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 3.4 KiB |
@ -1,12 +0,0 @@ |
|||||
{ |
|
||||
"compilerOptions": { |
|
||||
"module": "commonjs", |
|
||||
"target": "es6", |
|
||||
"outDir": "out", |
|
||||
"lib": [ |
|
||||
"es6" |
|
||||
], |
|
||||
"sourceMap": true, |
|
||||
"rootDir": "." |
|
||||
} |
|
||||
} |
|