Skip to content

Commit ee2600c

Browse files
committed
feat: add inline action buttons
1 parent f78a8ee commit ee2600c

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

media/open.webp

7.55 KB
Binary file not shown.

media/stop.png

53.3 KB
Loading

package.json

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,27 @@
4444
"view/item/context": [
4545
{
4646
"command": "coderWorkspaces.rebuildWorkspace",
47+
"group": "inline",
48+
"when": "view == coderWorkspaces"
49+
},
50+
{
51+
"command": "coderWorkspaces.rebuildWorkspace",
52+
"when": "view == coderWorkspaces"
53+
},
54+
{
55+
"command": "coderWorkspaces.shutdownWorkspace",
56+
"group": "inline",
4757
"when": "view == coderWorkspaces"
4858
},
4959
{
5060
"command": "coderWorkspaces.shutdownWorkspace",
5161
"when": "view == coderWorkspaces"
5262
},
63+
{
64+
"command": "coderWorkspaces.openWorkspace",
65+
"group": "inline",
66+
"when": "view == coderWorkspaces"
67+
},
5368
{
5469
"command": "coderWorkspaces.openWorkspace",
5570
"when": "view == coderWorkspaces"
@@ -74,15 +89,27 @@
7489
},
7590
{
7691
"command": "coderWorkspaces.rebuildWorkspace",
77-
"title": "Rebuild Workspace"
92+
"title": "Rebuild",
93+
"icon": {
94+
"light": "media/light/refresh.svg",
95+
"dark": "media/dark/refresh.svg"
96+
}
7897
},
7998
{
8099
"command": "coderWorkspaces.shutdownWorkspace",
81-
"title": "Shutdown Workspace"
100+
"title": "Shutdown",
101+
"icon": {
102+
"light": "media/stop.png",
103+
"dark": "media/stop.png"
104+
}
82105
},
83106
{
84107
"command": "coderWorkspaces.openWorkspace",
85-
"title": "Open Workspace"
108+
"title": "Open",
109+
"icon": {
110+
"light": "media/open.webp",
111+
"dark": "media/open.webp"
112+
}
86113
}
87114
]
88115
},

0 commit comments

Comments
 (0)