#fix monitor <updateProperty> modify position of <refreshPrjFolder>
This commit is contained in:
parent
dd33f4dfdb
commit
60bebe24f1
@ -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 = [];
|
||||
|
@ -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;
|
||||
|
@ -8,5 +8,6 @@ module mux2to1(
|
||||
);
|
||||
|
||||
|
||||
assign outp = sel == 1'b0 ? a : b
|
||||
assign outp = sel == 1'b0 ? a : b;
|
||||
|
||||
endmodule
|
||||
|
Loading…
x
Reference in New Issue
Block a user