Support to run the selected script in the editor

This commit is contained in:
Erich Gamma
2018-07-18 12:57:26 +02:00
parent c82766c068
commit 5c5f93cdbc
5 changed files with 95 additions and 2 deletions

View File

@@ -59,6 +59,10 @@
"dark": "resources/dark/continue.svg"
}
},
{
"command": "npm.runScriptFromSource",
"title": "%command.runScriptFromSource%"
},
{
"command": "npm.debugScript",
"title": "%command.debug%",
@@ -94,6 +98,10 @@
"command": "npm.runScript",
"when": "false"
},
{
"command": "npm.runScriptFromSource",
"when": "false"
},
{
"command": "npm.debugScript",
"when": "false"
@@ -114,6 +122,13 @@
"group": "navigation"
}
],
"editor/context": [
{
"command": "npm.runScriptFromSource",
"when": "resourceFilename == 'package.json'",
"group": "navigation@+1"
}
],
"view/item/context": [
{
"command": "npm.openScript",