mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
Support to run the selected script in the editor
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user