Skip to content

Commit

Permalink
Use enablement for yowasp.toolchain.requestUSBDevice command. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed May 18, 2024
1 parent 8eba394 commit 8e46d97
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,21 @@
},
"commands": [
{
"command": "yowasp.toolchain.build",
"command": "yowasp.toolchain.runCommand",
"category": "YoWASP Toolchain",
"title": "Build...",
"enablement": "config.yowaspToolchain.buildCommands && config.yowaspToolchain.buildCommands != []"
"title": "Run Command..."
},
{
"command": "yowasp.toolchain.runCommand",
"command": "yowasp.toolchain.build",
"category": "YoWASP Toolchain",
"title": "Run Command..."
"title": "Build...",
"enablement": "config.yowaspToolchain.buildCommands && config.yowaspToolchain.buildCommands != []"
},
{
"command": "yowasp.toolchain.requestUSBDevice",
"category": "YoWASP Toolchain",
"title": "Connect USB Device..."
"title": "Connect USB Device...",
"enablement": "isWeb"
}
],
"keybindings": [
Expand All @@ -106,14 +107,6 @@
"mac": "shift+cmd+b"
}
],
"menus": {
"commandPalette": [
{
"command": "yowasp.toolchain.requestUSBDevice",
"when": "isWeb"
}
]
},
"taskDefinitions": [
{
"type": "yowasp",
Expand Down

0 comments on commit 8e46d97

Please sign in to comment.