import * as vscode from "vscode" ; import * as path from "path" ; import { Node } from "./Node" ; import { CustomUIClass } from "ui5plugin-parser/dist/classes/UI5Classes/UI5Parser/UIClass/CustomUIClass" ; export abstract class RootNode extends Node { readonly UIClass : CustomUIClass ; constructor ( UIClass ) { super ( ) ; this . UIClass = UIClass ; } protected _buildIconPath ( iconPath ) { const extensionPath = vscode . extensions . getExtension ( "iljapostnovs.ui5plugin" ) ?. extensionPath ; return extensionPath && path . join ( extensionPath , `./icons/${ iconPath }` ) ; } }