(resource: string)
| 6 | export function getWebviewContent(webView: vscode.Webview, extensionPath: string, fileUriFsPath: string) { |
| 7 | |
| 8 | function resourceUrl(resource: string) { |
| 9 | // Get path to resource on disk |
| 10 | const onDiskPath = vscode.Uri.file(path.join(extensionPath, 'resources', resource)); |
| 11 | |
| 12 | // And get the special URI to use with the webview |
| 13 | return webView.asWebviewUri(onDiskPath); |
| 14 | } |
| 15 | |
| 16 | return `<!DOCTYPE html> |
| 17 | <html lang="en"> |