// Get path to resource on disk const onDiskPath = vscode.Uri.file( path.join(context.extensionPath, 'css', 'style.css') ); // And get the special URI to use with the webview const cssURI = panel.webview.asWebviewUri(onDiskPath);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter