Skip to content

Commit

Permalink
Contextually enable "Build..." command and bind it to Shift+Ctrl+B.
Browse files Browse the repository at this point in the history
This takes priority over the built-in build command, but is disabled
unless `yowaspToolchain.buildCommands` is present.
  • Loading branch information
whitequark committed May 18, 2024
1 parent 8a60865 commit 8eba394
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ All notable changes to the YoWASP toolchain extension will be documented in this

- Use release version of nextpnr instead of latest build by default.
- Added default bundle: [`@spade-lang/spade`](https://spade-lang.org/).
- The "Build..." command is now bound to <kbd>Shift</kbd>+<kbd>Ctrl</kbd>+<kbd>B</kbd>.
- The "Build..." command is now conditionally enabled if `yowaspToolchain.buildCommands` setting is present.

## 0.2.6

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"minItems": 1
},
"minItems": 1,
"default": [],
"markdownDescription": "The sequence of commands executed by the \"YoWASP Toolchain: Build...\" command.\n\nEach command is an array where the first element specifies the command to run, and the rest specify its arguments. Input or output files **must appear as their own argument** and not be concatenated with an option.\n\nE.g.:\n```\n[\n [\"yosys\", \"top.v\", \"-p\", \"synth_ice40\", \"-o\", \"top.json\"],\n [\"nextpnr-ice40\", \"--hx8k\", \"--package\", \"ct256\", \"--json\", \"top.json\", \"--asc\", \"top.asc\"]\n]\n```"
}
}
Expand All @@ -84,7 +85,8 @@
{
"command": "yowasp.toolchain.build",
"category": "YoWASP Toolchain",
"title": "Build..."
"title": "Build...",
"enablement": "config.yowaspToolchain.buildCommands && config.yowaspToolchain.buildCommands != []"
},
{
"command": "yowasp.toolchain.runCommand",
Expand All @@ -97,6 +99,13 @@
"title": "Connect USB Device..."
}
],
"keybindings": [
{
"command": "yowasp.toolchain.build",
"key": "ctrl+shift+b",
"mac": "shift+cmd+b"
}
],
"menus": {
"commandPalette": [
{
Expand Down

0 comments on commit 8eba394

Please sign in to comment.