Skip to content

Commit

Permalink
VSC-338 Add new root-level files commands
Browse files Browse the repository at this point in the history
Cherry-picked from fe2d784
  • Loading branch information
HampusAdolfsson committed Oct 7, 2022
1 parent e0c1308 commit bdf2c1e
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"onCommand:iar-build.selectConfiguration",
"onCommand:iar-build.selectIarWorkspace",
"onCommand:iar-build.addToolchain",
"onCommand:iar-build.addFileToRoot",
"onCommand:iar-build.addGroupToRoot",
"onCommand:iar-build.addFile",
"onCommand:iar-build.addGroup",
"onCommand:iar-build.removeNode",
Expand Down Expand Up @@ -93,6 +95,18 @@
"title": "Get the selected project name",
"category": "IAR Settings"
},
{
"command": "iar-build.addFileToRoot",
"title": "Add file(s) to project",
"category": "IAR Build",
"icon": "$(new-file)"
},
{
"command": "iar-build.addGroupToRoot",
"title": "Add group to project",
"category": "IAR Build",
"icon": "$(new-folder)"
},
{
"command": "iar-build.addFile",
"title": "Add file(s) here",
Expand Down Expand Up @@ -154,12 +168,12 @@
"when": "view == iar-project"
},
{
"command": "iar-build.addFile",
"command": "iar-build.addFileToRoot",
"when": "view == iar-project && iar-build.extendedProjectLoaded",
"group": "navigation"
},
{
"command": "iar-build.addGroup",
"command": "iar-build.addGroupToRoot",
"when": "view == iar-project && iar-build.extendedProjectLoaded",
"group": "navigation"
}
Expand All @@ -182,6 +196,14 @@
}
],
"commandPalette": [
{
"command": "iar-build.addFileToRoot",
"when": "false"
},
{
"command": "iar-build.addGroupToRoot",
"when": "false"
},
{
"command": "iar-build.addFile",
"when": "false"
Expand Down

0 comments on commit bdf2c1e

Please sign in to comment.