feat:接入波形查看器的工具

- 生成VCD文件后,就自动打开波形查看的工具显示波形
This commit is contained in:
Roe-xin
2025-12-15 11:51:35 +08:00
parent 22b9a0ed13
commit ab6d257df2
10 changed files with 642 additions and 11 deletions

View File

@ -595,16 +595,13 @@ async function handleVCDGeneration(
text: successMsg,
});
vscode.window.showInformationMessage(
`VCD 文件生成成功: ${result.vcdFilePath}`,
"打开文件"
).then((selection) => {
if (selection === "打开文件" && result.vcdFilePath) {
vscode.workspace.openTextDocument(result.vcdFilePath).then((doc) => {
vscode.window.showTextDocument(doc);
});
}
});
// 自动打开 VCD 波形查看器
if (result.vcdFilePath) {
vscode.commands.executeCommand("ic-coder.openVCDViewer", result.vcdFilePath);
vscode.window.showInformationMessage(
`VCD 文件生成成功,已自动打开波形查看器`
);
}
} else {
let errorMsg = `${result.message}`;