diff --git a/src/panels/ICHelperPanel.ts b/src/panels/ICHelperPanel.ts index 0a45b08..8d36194 100644 --- a/src/panels/ICHelperPanel.ts +++ b/src/panels/ICHelperPanel.ts @@ -175,12 +175,10 @@ export async function showICHelperPanel( vscode.window.showInformationMessage(message.text); break; case "openWaveformViewer": - // 打开波形查看器 + // 打开波形查看器 - 使用 vscode.open 触发自定义编辑器 if (message.vcdFilePath) { - VCDViewerPanel.createOrShow( - context.extensionUri, - message.vcdFilePath - ); + const vcdUri = vscode.Uri.file(message.vcdFilePath); + vscode.commands.executeCommand('vscode.open', vcdUri); } break; case "getVCDInfo":