diff --git a/project/property-schema.json b/project/property-schema.json index 364c338..2a329ee 100644 --- a/project/property-schema.json +++ b/project/property-schema.json @@ -198,7 +198,8 @@ "xc7a35tftg256-1", "xc7a35tcsg324-1", "xc7z035ffg676-2", - "xc7z020clg484-1" + "xc7z020clg484-1", + "hello-world" ] } }, diff --git a/src/function/dide-netlist/index.ts b/src/function/dide-netlist/index.ts index 66ae7b1..bf3d2dc 100644 --- a/src/function/dide-netlist/index.ts +++ b/src/function/dide-netlist/index.ts @@ -178,6 +178,7 @@ function checkResource() { export async function openNetlistViewer(context: vscode.ExtensionContext, uri: vscode.Uri, moduleName: string) { checkResource(); const worker = new Worker(workerScriptPath); + let success = true; worker.on('message', message => { const command = message.command; @@ -185,8 +186,11 @@ export async function openNetlistViewer(context: vscode.ExtensionContext, uri: v switch (command) { case 'error-log-file': showErrorLogFile(data); + success = false; + break; + case 'finish': + break; - default: break; } @@ -221,8 +225,10 @@ export async function openNetlistViewer(context: vscode.ExtensionContext, uri: v worker.terminate(); - const render = new NetlistRender(); - render.create(moduleName); + if (success) { + const render = new NetlistRender(); + render.create(moduleName); + } } async function showErrorLogFile(data: any) {