feat:预览波形展开新开窗口展示完整波形

This commit is contained in:
Roe-xin
2026-01-09 19:06:34 +08:00
parent f9b3699bda
commit 6abec8c7b7
5 changed files with 396 additions and 7 deletions

View File

@ -247,10 +247,9 @@ export async function showICHelperPanel(
vscode.window.showInformationMessage(message.text);
break;
case "openWaveformViewer":
// 打开波形查看器 - 使用 vscode.open 触发自定义编辑器
// 在新列中打开波形查看器
if (message.vcdFilePath) {
const vcdUri = vscode.Uri.file(message.vcdFilePath);
vscode.commands.executeCommand('vscode.open', vcdUri);
vscode.commands.executeCommand('ic-coder.openVCDViewer', message.vcdFilePath);
}
break;
case "getVCDInfo":

View File

@ -107,7 +107,8 @@ export class VCDViewerPanel {
* 创建或显示 VCD 查看器面板
*/
public static createOrShow(extensionUri: vscode.Uri, vcdFilePath?: string, vcdFileServer?: VCDFileServer) {
const column = vscode.ViewColumn.One;
// 在当前活动编辑器旁边打开新列
const column = vscode.ViewColumn.Beside;
// 如果已经有面板打开,则显示它
if (VCDViewerPanel.currentPanel) {