import * as vscode from 'vscode' ; import { Kubectl } from '../../kubectl' ; import { Host } from '../../host' ; import { ClusterExplorerNode , ClusterExplorerNodeBase , ClusterExplorerNodeImpl } from './node' ; import { KubernetesExplorerNodeType } from './explorer' ; export abstract class FolderNode extends ClusterExplorerNodeImpl implements ClusterExplorerNodeBase { constructor ( readonly nodeType , readonly id , readonly displayName , readonly contextValue ? ) { super ( nodeType ) ; } abstract getChildren ( kubectl , host ) ; getTreeItem ( ) { const treeItem = new vscode . TreeItem ( this . displayName , vscode . TreeItemCollapsibleState . Collapsed ) ; treeItem . contextValue = this . contextValue || `vsKubernetes.${ this . id }` ; return treeItem ; } async apiURI ( _kubectl , _namespace ) { return undefined ; } }