提交 c0e52d19 编写于 作者: E Erich Gamma

amend to fix for #48806

上级 d7164a1c
......@@ -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() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册