mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Added icons in book tree view (#6404)
* add icons * added icon files * fixed icon paths * moved icons into object initializer
This commit is contained in:
@@ -31,7 +31,7 @@ export class BookTreeItem extends vscode.TreeItem {
|
||||
private _nextUri: string;
|
||||
public command: vscode.Command;
|
||||
|
||||
constructor(public book: BookTreeItemFormat) {
|
||||
constructor(public book: BookTreeItemFormat, icons: any) {
|
||||
super(book.title, vscode.TreeItemCollapsibleState.Collapsed);
|
||||
|
||||
if (book.type === BookTreeItemType.Book) {
|
||||
@@ -41,6 +41,7 @@ export class BookTreeItem extends vscode.TreeItem {
|
||||
this.setPageVariables();
|
||||
this.setCommand();
|
||||
}
|
||||
this.iconPath = icons;
|
||||
}
|
||||
|
||||
private setPageVariables() {
|
||||
|
||||
Reference in New Issue
Block a user