Skip to content

Commit 466e2f3

Browse files
authored
Add run button as inline button in Project explorer (#900)
1 parent ce265cb commit 466e2f3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070
},
7171
{
7272
"command": "java.debug.runFromProjectView",
73-
"title": "Run"
73+
"title": "Run",
74+
"icon": "$(play)"
7475
},
7576
{
7677
"command": "java.debug.debugFromProjectView",
@@ -95,6 +96,11 @@
9596
],
9697
"menus": {
9798
"view/item/context": [
99+
{
100+
"command": "java.debug.runFromProjectView",
101+
"when": "view == javaProjectExplorer && viewItem =~ /java:project(?=.*?\\b\\+java\\b)(?=.*?\\b\\+uri\\b)/",
102+
"group": "inline@run_0"
103+
},
98104
{
99105
"command": "java.debug.runFromProjectView",
100106
"when": "view == javaProjectExplorer && viewItem =~ /java:project(?=.*?\\b\\+java\\b)(?=.*?\\b\\+uri\\b)/",

0 commit comments

Comments
 (0)