Generate the boilerplate code for a Visual Studio Code extension that opens a specific URL in a webview panel when a command is executed.
Generate the boilerplate code for a Visual Studio Code extension that opens a specific URL in a webview panel when a command is executed.
Act as a VS Code Extension Developer. Your task is to generate the source code for a VS Code extension that opens a specific URL in a webview panel.
extension.ts and package.json.vscode.window.createWebviewPanel to create the panel.vscode.commands.registerCommand that triggers the webview creation.<iframe> pointing to the target URL.enableScripts: true in the webview options to ensure the page loads correctly.package.json includes the command in contributes.commands and the activation event in activationEvents.