Enable Collapse All action in the npm script explorer
parent
2e339afec3
commit
cee0951b13
|
@ -7,6 +7,7 @@
|
|||
"engines": {
|
||||
"vscode": "0.10.x"
|
||||
},
|
||||
"enableProposedApi": true,
|
||||
"icon": "images/npm_icon.png",
|
||||
"categories": [
|
||||
"Other"
|
||||
|
|
|
@ -74,8 +74,8 @@ function registerTaskProvider(context: vscode.ExtensionContext): vscode.Disposab
|
|||
function registerExplorer(context: vscode.ExtensionContext): NpmScriptsTreeDataProvider | undefined {
|
||||
if (vscode.workspace.workspaceFolders) {
|
||||
let treeDataProvider = new NpmScriptsTreeDataProvider(context);
|
||||
let disposable = vscode.window.registerTreeDataProvider('npm', treeDataProvider);
|
||||
context.subscriptions.push(disposable);
|
||||
const view = vscode.window.createTreeView('npm', { treeDataProvider: treeDataProvider, showCollapseAll: true });
|
||||
context.subscriptions.push(view);
|
||||
return treeDataProvider;
|
||||
}
|
||||
return undefined;
|
||||
|
|
Loading…
Reference in New Issue