mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 01:25:36 -05:00
Cleanup sql projects tree (#21883)
* remove MessageTreeItem and rename projectUri to relativeProjectUri * declare variables inline in constructor
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
import { BaseProjectTreeItem, SpacerTreeItem } from '../models/tree/baseTreeItem';
|
||||
import { BaseProjectTreeItem } from '../models/tree/baseTreeItem';
|
||||
import { ProjectRootTreeItem } from '../models/tree/projectTreeItem';
|
||||
import { Project } from '../models/project';
|
||||
|
||||
@@ -52,11 +52,6 @@ export class SqlDatabaseProjectTreeViewProvider implements vscode.TreeDataProvid
|
||||
|
||||
for (const proj of projects) {
|
||||
newRoots.push(new ProjectRootTreeItem(proj));
|
||||
newRoots.push(SpacerTreeItem);
|
||||
}
|
||||
|
||||
if (newRoots[newRoots.length - 1] === SpacerTreeItem) {
|
||||
newRoots.pop(); // get rid of the trailing SpacerTreeItem
|
||||
}
|
||||
|
||||
this.roots = newRoots;
|
||||
|
||||
Reference in New Issue
Block a user