Contribute run selected to the context menu

This commit is contained in:
Erich Gamma 2018-07-29 11:38:22 +02:00
parent 345440f62f
commit 83a42a58af
2 changed files with 12 additions and 1 deletions

View file

@ -109,6 +109,17 @@
{
"command": "npm.runInstall",
"when": "false"
},
{
"command": "npm.runSelectedScript",
"when": "false"
}
],
"editor/context": [
{
"command": "npm.runSelectedScript",
"when": "resourceFilename == 'package.json'",
"group": "navigation@+1"
}
],
"view/title": [

View file

@ -17,5 +17,5 @@
"command.debug": "Debug",
"command.openScript": "Open",
"command.runInstall": "Run Install",
"command.runSelectedScript": "Npm: Run Selected Script"
"command.runSelectedScript": "Run Script"
}