修复 windows 上快速仿真的问题

This commit is contained in:
锦恢 2024-11-27 22:22:19 +08:00
parent bf97b231ff
commit 5524921da9
3 changed files with 14 additions and 2 deletions

View File

@ -90,7 +90,8 @@ class Simulate {
const setting = vscode.workspace.getConfiguration();
// make simulation dir
const defaultSimulationDir = hdlPath.join(opeParam.prjInfo.arch.prjPath, 'icarus');
const defaultSimulationDir = hdlPath.join(opeParam.prjInfo.prjPath, 'icarus');
simConfig.simulationHome = setting.get('digital-ide.function.simulate.simulationHome', '');
if (!fs.existsSync(simConfig.simulationHome)) {
simConfig.simulationHome = defaultSimulationDir;

View File

@ -652,6 +652,17 @@ class PrjInfo implements PrjInfoMeta {
return hdlPath.join(extensionPath, 'library');
}
/**
* @description prjPath
*/
public get prjPath(): AbsPath {
const prjPath = this.arch.prjPath;
if (prjPath === undefined || prjPath.length === 0) {
return this._workspacePath;
}
return prjPath;
}
public json(): RawPrjInfo {
return {
toolChain: this._toolChain,

View File

@ -154,7 +154,7 @@ export class HdlAction extends BaseAction {
private isvalid(path: AbsPath): boolean {
const prjInfo = opeParam.prjInfo;
if (path.startsWith(prjInfo.hardwareSrcPath) || path.startsWith(prjInfo.hardwareSimPath)) {
if (!hdlIgnore.isignore(path)) {
if (!hdlIgnore.isignore(path) && hdlFile.isHDLFile(path)) {
return true;
}
}