(_filePath: string)
| 35 | async function render(panel: vscode.WebviewPanel, rootPath: string): Promise<void> { |
| 36 | // generate vscode-resource build path uri |
| 37 | const createUri = (_filePath: string): any => { |
| 38 | const filePath = (_filePath.startsWith('vscode') ? _filePath.substr(16) : _filePath).replace('///', '\\') |
| 39 | |
| 40 | // @ts-ignore |
| 41 | return panel.webview.asWebviewUri(vscode.Uri.file(path.join(rootPath, filePath))) |
| 42 | } |
| 43 | |
| 44 | try { |
| 45 | // load copied index.html from web app build |