Add run button as inline button in Project explorer (#900)

This commit is contained in:
Sheng Chen 2020-11-02 10:49:07 +08:00 committed by GitHub
parent ce265cbe40
commit 466e2f3d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -70,7 +70,8 @@
},
{
"command": "java.debug.runFromProjectView",
"title": "Run"
"title": "Run",
"icon": "$(play)"
},
{
"command": "java.debug.debugFromProjectView",
@ -95,6 +96,11 @@
],
"menus": {
"view/item/context": [
{
"command": "java.debug.runFromProjectView",
"when": "view == javaProjectExplorer && viewItem =~ /java:project(?=.*?\\b\\+java\\b)(?=.*?\\b\\+uri\\b)/",
"group": "inline@run_0"
},
{
"command": "java.debug.runFromProjectView",
"when": "view == javaProjectExplorer && viewItem =~ /java:project(?=.*?\\b\\+java\\b)(?=.*?\\b\\+uri\\b)/",