'use strict' ; import * as vscode from 'vscode' ; import { BlockchainTreeItem } from './BlockchainTreeItem' ; import { BlockchainExplorerProvider } from '../BlockchainExplorerProvider' ; import { PackageRegistryEntry } from '../../registries/PackageRegistryEntry' ; export class PackageTreeItem extends BlockchainTreeItem { contextValue : string = 'blockchain-package-item' ; constructor ( provider , public readonly name , public readonly extension , public readonly packageEntry ) { super ( provider , name , vscode . TreeItemCollapsibleState . None ) ; this . tooltip = `${ name } (${ extension })\nFile size: ${ packageEntry . sizeKB } KB` ; this . description = extension ? `(${ extension })` : '' ; } }