Avoid double-declaring fields that are inherited from TreeItem

This commit is contained in:
Robert
2023-05-16 16:57:02 +01:00
parent b0371b5075
commit 1ceccc8b4d

View File

@@ -1,13 +1,13 @@
import * as vscode from "vscode";
export class QueryTreeViewItem extends vscode.TreeItem {
public collapsibleState: vscode.TreeItemCollapsibleState;
constructor(
public readonly label: string,
public readonly tooltip: string | undefined,
label: string,
tooltip: string | undefined,
public readonly children: QueryTreeViewItem[],
) {
super(label);
this.tooltip = tooltip;
this.collapsibleState = this.children.length
? vscode.TreeItemCollapsibleState.Collapsed
: vscode.TreeItemCollapsibleState.None;