Skip to content

Commit 6946fe2

Browse files
Salil03mfornet
andauthored
Added button for upgrade and stress (#82)
* Added button for upgrade and stress * Add buttons to the top Co-authored-by: Marcelo Fornet <[email protected]>
1 parent 6ded4c9 commit 6946fe2

File tree

6 files changed

+149
-3
lines changed

6 files changed

+149
-3
lines changed

images/stress-dark.svg

+44
Loading

images/stress-light.svg

+61
Loading

images/upgrade-dark.svg

+4
Loading

images/upgrade-light.svg

+7
Loading

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+32-2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@
5454
"description": "Whether to show 'Compile File' icon in editor title menu.",
5555
"scope": "resource"
5656
},
57+
"acmx.execution.showUpgradeIconInEditorTitleMenu": {
58+
"type": "boolean",
59+
"default": true,
60+
"description": "Whether to show 'Upgrade' icon in editor title menu.",
61+
"scope": "resource"
62+
},
63+
"acmx.execution.showStressIconInEditorTitleMenu": {
64+
"type": "boolean",
65+
"default": true,
66+
"description": "Whether to show 'Upgrade' icon in editor title menu.",
67+
"scope": "resource"
68+
},
5769
"acmx.stress.times": {
5870
"type": "number",
5971
"default": 10,
@@ -154,11 +166,19 @@
154166
},
155167
{
156168
"command": "acmx.stress",
157-
"title": "ACMX: Stress"
169+
"title": "ACMX: Stress",
170+
"icon": {
171+
"light": "./images/stress-light.svg",
172+
"dark": "./images/stress-dark.svg"
173+
}
158174
},
159175
{
160176
"command": "acmx.upgrade",
161-
"title": "ACMX: Upgrade"
177+
"title": "ACMX: Upgrade",
178+
"icon": {
179+
"light": "./images/upgrade-light.svg",
180+
"dark": "./images/upgrade-dark.svg"
181+
}
162182
},
163183
{
164184
"command": "acmx.compile",
@@ -231,6 +251,16 @@
231251
"when": "config.acmx.execution.showCompileIconInEditorTitleMenu",
232252
"command": "acmx.compile",
233253
"group": "navigation"
254+
},
255+
{
256+
"when": "config.acmx.execution.showUpgradeIconInEditorTitleMenu",
257+
"command": "acmx.upgrade",
258+
"group": "navigation"
259+
},
260+
{
261+
"when": "config.acmx.execution.showStressIconInEditorTitleMenu",
262+
"command": "acmx.stress",
263+
"group": "navigation"
234264
}
235265
]
236266
}

0 commit comments

Comments
 (0)