amend to fix for #48806

This commit is contained in:
Erich Gamma 2018-04-27 11:35:19 +02:00
parent d7164a1c9c
commit c0e52d19ad
2 changed files with 3 additions and 2 deletions

View file

@ -30,7 +30,8 @@
"activationEvents": [
"onCommand:workbench.action.tasks.runTask",
"onLanguage:json",
"onView:npm"
"onView:npm",
"workspaceContains:**/package.json"
],
"contributes": {
"views": {

View file

@ -49,8 +49,8 @@ async function registerExplorer(context: vscode.ExtensionContext) {
if (vscode.workspace.workspaceFolders) {
let treeDataProvider = vscode.window.registerTreeDataProvider('npm', new NpmScriptsTreeDataProvider(context));
context.subscriptions.push(treeDataProvider);
updateExplorerVisibility();
}
updateExplorerVisibility();
}
function configureHttpRequest() {