import { Command , ThemeIcon , Uri } from "vscode" ; import { Commands } from "../commands" ; import { Explorer } from "../constants" ; import { INodeData } from "../java/nodeData" ; import { DataNode } from "./dataNode" ; import { ExplorerNode } from "./explorerNode" ; export class FileNode extends DataNode { constructor ( nodeData , parent ) { super ( nodeData , parent ) ; } protected hasChildren ( ) { return false ; } protected async loadData ( ) { return undefined ; } protected createChildNodeList ( ) { return undefined ; } protected get iconPath ( ) : ThemeIcon { return ThemeIcon . File ; } protected get command ( ) : Command { return { title : "Open file" , command : Commands . VSCODE_OPEN , arguments : [ Uri . parse ( this . uri || "" ) , { preserveFocus : true } ] , } ; } protected get contextValue ( ) : string { return Explorer . ContextValueType . File ; } }