import { Uri , WebviewPanel , WebviewPanelOptions , window } from "vscode" ; export class WebViewOptions implements WebviewPanelOptions { enableCommandUris : boolean = true ; enableScripts : boolean = true ; retainContextWhenHidden : boolean = true ; localResourceRoots : Uri [ ] ; enableFindWidget : boolean = true ; constructor ( resourceRoots ) { this . localResourceRoots = resourceRoots ; } } export class WebView { static apply ( name , title , resourceRoots ) { return window . createWebviewPanel ( name , title , - 1 , new WebViewOptions ( resourceRoots ) ) ; } }