Skip to content

Commit

Permalink
feat: Convert context menu commands to inline
Browse files Browse the repository at this point in the history
  • Loading branch information
kgilpin authored and dustinbyrne committed Jun 28, 2023
1 parent 39eeb85 commit 550cd48
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,13 @@
},
{
"command": "appmap.context.openAsJson",
"title": "AppMap View: Open as JSON"
"title": "AppMap View: Open as JSON",
"icon": "$(bracket)"
},
{
"command": "appmap.context.deleteAppMap",
"title": "AppMap View: Delete AppMap",
"icon": "$(trash)"
},
{
"command": "appmap.context.rename",
Expand All @@ -168,10 +174,6 @@
"command": "appmap.context.inspectCodeObject",
"title": "AppMap View: Inspect Code Object"
},
{
"command": "appmap.context.deleteAppMap",
"title": "AppMap View: Delete AppMap"
},
{
"command": "appmap.context.deleteAppMaps",
"title": "AppMap View: Delete AppMaps"
Expand Down Expand Up @@ -339,10 +341,6 @@
"command": "appmap.context.openInFileExplorer",
"when": "false"
},
{
"command": "appmap.context.openAsJson",
"when": "false"
},
{
"command": "appmap.context.rename",
"when": "false"
Expand All @@ -363,10 +361,6 @@
"command": "appmap.context.compareSequenceDiagrams",
"when": "false"
},
{
"command": "appmap.context.deleteAppMap",
"when": "false"
},
{
"command": "appmap.context.deleteAppMaps",
"when": "false"
Expand Down Expand Up @@ -396,11 +390,17 @@
],
"view/item/context": [
{
"command": "appmap.context.openInFileExplorer",
"when": "view == appmap.views.appmaps && viewItem == appmap.views.appmaps.appMap"
"command": "appmap.context.openAsJson",
"when": "view == appmap.views.appmaps && viewItem == appmap.views.appmaps.appMap",
"group": "inline"
},
{
"command": "appmap.context.openAsJson",
"command": "appmap.context.deleteAppMap",
"when": "view == appmap.views.appmaps && viewItem == appmap.views.appmaps.appMap",
"group": "inline"
},
{
"command": "appmap.context.openInFileExplorer",
"when": "view == appmap.views.appmaps && viewItem == appmap.views.appmaps.appMap"
},
{
Expand All @@ -419,10 +419,6 @@
"command": "appmap.context.compareSequenceDiagrams",
"when": "view == appmap.views.appmaps && viewItem == appmap.views.appmaps.appMap"
},
{
"command": "appmap.context.deleteAppMap",
"when": "view == appmap.views.appmaps && viewItem == appmap.views.appmaps.appMap"
},
{
"command": "appmap.context.deleteAppMaps",
"when": "view == appmap.views.appmaps && viewItem == appmap.views.appmaps.appMapCollection"
Expand Down

0 comments on commit 550cd48

Please sign in to comment.