Show the npm script explorer when there is a top level package.json

This commit is contained in:
Erich Gamma
2019-07-29 14:26:49 +02:00
parent 6aa6b3e2ed
commit af4bfe6ef4
3 changed files with 23 additions and 2 deletions

View File

@@ -31,6 +31,7 @@
"activationEvents": [
"onCommand:workbench.action.tasks.runTask",
"onLanguage:json",
"workspaceContains:package.json",
"onView:npm"
],
"contributes": {
@@ -47,7 +48,7 @@
{
"id": "npm",
"name": "%view.name%",
"when": "config.npm.enableScriptExplorer"
"when": "npm:showScriptExplorer || config.npm.enableScriptExplorer"
}
]
},