Avoid double-declaring fields that are inherited from TreeItem
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user