#fix monitor <updateProperty> modify position of <refreshPrjFolder>

This commit is contained in:
锦恢 2023-07-15 16:12:56 +08:00
parent dd33f4dfdb
commit 60bebe24f1
3 changed files with 8 additions and 5 deletions

View File

@ -146,6 +146,11 @@ async function getDocsFromFile(path: AbsPath): Promise<MarkdownString[] | undefi
if (!moduleFile) {
MainOutput.report('Fail to export documentation of ' + path,
ReportType.Error);
const errorMsg = `${path} is not a valid hdl file in our parse list, check your property.json to see if arch.hardware.src is set correctly!
\ncurrent parse list: \n${opeParam.prjInfo.hardwareSrcPath}\n${opeParam.prjInfo.hardwareSimPath}`;
vscode.window.showErrorMessage(errorMsg);
return undefined;
}
const markdownStringPromises = [];

View File

@ -161,21 +161,18 @@ class PpyAction extends BaseAction {
console.log('PpyAction add');
assert.equal(hdlPath.toSlash(path), opeParam.propertyJsonPath);
await this.updateProperty(Event.Add, m);
prjManage.refreshPrjFolder();
}
async unlink(path: string, m: HdlMonitor): Promise<void> {
console.log('PpyAction unlink');
assert.equal(hdlPath.toSlash(path), opeParam.propertyJsonPath);
await this.updateProperty(Event.Unlink, m);
prjManage.refreshPrjFolder();
}
async change(path: string, m: HdlMonitor): Promise<void> {
console.log('PpyAction change');
assert.equal(hdlPath.toSlash(path), opeParam.propertyJsonPath);
await this.updateProperty(Event.Change, m);
prjManage.refreshPrjFolder();
}
// get path set from opeParam that used to tell if need to remake HdlMonitor
@ -201,11 +198,11 @@ class PpyAction extends BaseAction {
// when delete, make ws path to be main parse path
if (e === Event.Unlink) {
console.log('unlink ppy, PrjInfoDefaults.arch:', PrjInfoDefaults.arch);
rawPrjInfo.arch = PrjInfoDefaults.arch;
}
opeParam.mergePrjInfo(rawPrjInfo);
await prjManage.refreshPrjFolder();
const currentPathSet = this.getImportantPathSet();
const currentLibState = opeParam.prjInfo.library.state;

View File

@ -8,5 +8,6 @@ module mux2to1(
);
assign outp = sel == 1'b0 ? a : b
assign outp = sel == 1'b0 ? a : b;
endmodule