Expand/collapse all node options (#11728)

* Implementing expand and collapse nodes

* adding constants for error messages

* Removing expand all database projects functionality

* Reformatting imports
This commit is contained in:
anjalia
2020-08-13 18:31:03 -07:00
committed by GitHub
parent 28aa9b7912
commit 1ee4af52b4
4 changed files with 15 additions and 3 deletions

View File

@@ -76,7 +76,10 @@ export default class MainController implements vscode.Disposable {
IconPathHelper.setExtensionContext(this.extensionContext);
// init view
const treeView = vscode.window.createTreeView(SQL_DATABASE_PROJECTS_VIEW_ID, { treeDataProvider: this.dbProjectTreeViewProvider });
const treeView = vscode.window.createTreeView(SQL_DATABASE_PROJECTS_VIEW_ID, {
treeDataProvider: this.dbProjectTreeViewProvider,
showCollapseAll: true
});
this.dbProjectTreeViewProvider.setTreeView(treeView);
this.extensionContext.subscriptions.push(treeView);