add Debug script command

This commit is contained in:
Erich Gamma
2018-03-30 16:51:05 +02:00
parent a765cafa61
commit 2ce1f53e36
4 changed files with 167 additions and 108 deletions

View File

@@ -44,11 +44,15 @@
"commands": [
{
"command": "npm.runScript",
"title": "Run Script"
"title": "Run"
},
{
"command": "npm.debugScript",
"title": "Debug"
},
{
"command": "npm.openScript",
"title": "Open Script"
"title": "Open"
},
{
"command": "npm.refresh",
@@ -72,6 +76,16 @@
"command": "npm.openScript",
"when": "view == npm && viewItem == packageJSON",
"group": "1_navigation"
},
{
"command": "npm.runScript",
"when": "view == npm && viewItem == script",
"group": "1_navigation"
},
{
"command": "npm.debugScript",
"when": "view == npm && viewItem == script",
"group": "1_navigation"
}
]
},