From a66628abffc63341ce18cb9796b4dff21dc9d80b Mon Sep 17 00:00:00 2001 From: Kirigaya <1193466151@qq.com> Date: Fri, 10 Jan 2025 21:09:20 +0800 Subject: [PATCH] update --- src/manager/prj.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/manager/prj.ts b/src/manager/prj.ts index add1ba9..8bb8e10 100644 --- a/src/manager/prj.ts +++ b/src/manager/prj.ts @@ -344,17 +344,15 @@ class PrjManage { const sourcePath = hdlPath.join(workspace, file); - // 排除非 hdl 文件 - if (hdlFile.isFile(sourcePath) && !hdlFile.isHDLFile(sourcePath)) { - continue; - } - if (file.startsWith(plname)) { const targetFolder = hdlPath.join(workspace, 'prj', 'xilinx'); hdlFile.move(sourcePath, targetFolder); } else { + // 排除非 hdl 文件 + if (hdlFile.isFile(sourcePath) && !hdlFile.isHDLFile(sourcePath)) { + continue; + } const targetFolder = hdlPath.join(workspace, 'user', 'src'); - hdlFile.move(sourcePath, targetFolder); } }