mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
amend to fix for #48806
This commit is contained in:
parent
d7164a1c9c
commit
c0e52d19ad
|
@ -30,7 +30,8 @@
|
|||
"activationEvents": [
|
||||
"onCommand:workbench.action.tasks.runTask",
|
||||
"onLanguage:json",
|
||||
"onView:npm"
|
||||
"onView:npm",
|
||||
"workspaceContains:**/package.json"
|
||||
],
|
||||
"contributes": {
|
||||
"views": {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue