Skip to content

Commit 83a42a5

Browse files
committed
Contribute run selected to the context menu
1 parent 345440f commit 83a42a5

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

extensions/npm/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,17 @@
109109
{
110110
"command": "npm.runInstall",
111111
"when": "false"
112+
},
113+
{
114+
"command": "npm.runSelectedScript",
115+
"when": "false"
116+
}
117+
],
118+
"editor/context": [
119+
{
120+
"command": "npm.runSelectedScript",
121+
"when": "resourceFilename == 'package.json'",
122+
"group": "navigation@+1"
112123
}
113124
],
114125
"view/title": [

extensions/npm/package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"command.debug": "Debug",
1818
"command.openScript": "Open",
1919
"command.runInstall": "Run Install",
20-
"command.runSelectedScript": "Npm: Run Selected Script"
20+
"command.runSelectedScript": "Run Script"
2121
}

0 commit comments

Comments
 (0)