Skip to content

Commit

Permalink
Fix dynamic command enablement
Browse files Browse the repository at this point in the history
Signed-off-by: paulober <[email protected]>
  • Loading branch information
paulober committed Dec 26, 2023
1 parent 90d0565 commit 1995c2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@
{
"command": "micropico.upload",
"title": "Upload project to Pico",
"enablement": "(resourceScheme != pico && isFileSystemResource) || inQuickOpen",
"enablement": "micropico.isConnected && (resourceScheme != pico && isFileSystemResource) || inQuickOpen",
"category": "MicroPico"
},
{
"command": "micropico.uploadFile",
"title": "Upload current file to Pico",
"enablement": "resourceScheme != pico && isFileSystemResource",
"enablement": "micropico.isConnected && resourceScheme != pico && isFileSystemResource",
"category": "MicroPico"
},
{
Expand All @@ -101,7 +101,7 @@
{
"command": "micropico.run",
"title": "Run current file on Pico",
"enablement": "resourceScheme != pico && isFileSystemResource && resourceExtname == .py",
"enablement": "micropico.isConnected && resourceScheme != pico && isFileSystemResource && resourceExtname == .py",
"category": "MicroPico"
},
{
Expand All @@ -118,7 +118,7 @@
{
"command": "micropico.runselection",
"title": "Run current selection on Pico",
"enablement": "!inQuickOpen && !listFocus && isFileSystemResource && editorLangId == python",
"enablement": "micropico.isConnected && !inQuickOpen && !listFocus && editorLangId == python",
"category": "MicroPico"
},
{
Expand Down

0 comments on commit 1995c2f

Please sign in to comment.