'use strict' ; import * as vscode from 'vscode' ; import { BlockchainExplorerProvider } from '../BlockchainExplorerProvider' ; export abstract class BlockchainTreeItem extends vscode . TreeItem { contextValue : string = 'blockchain-tree-item' ; constructor ( private readonly provider , public readonly label , public readonly collapsibleState ) { super ( label , collapsibleState ) ; this . tooltip = this . label ; } refresh ( ) { this . provider . refresh ( this ) ; } }