import { ThemeIcon , Uri } from 'vscode' ; import { CommandId } from '../../commands' ; import { DocumentationLink } from '../documentationConfig' ; import { TreeNode } from './treeNode' ; /**
 * Node for Documentation Tree View.
 */ export class DocumentationNode extends TreeNode { /**
     * Url of the external web page with documentation.
     */ url : string ; constructor ( link , isParent = false ) { super ( link . title ) ; this . url = link . url ; if ( ! isParent ) { this . setIcon ( new ThemeIcon ( 'link-external' ) ) ; } } get tooltip ( ) { return this . url ; } get command ( ) { return { command : CommandId . VSCodeOpen , arguments : [ Uri . parse ( this . url ) ] , title : 'Open link' , } ; } }