#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) {
|
if (!moduleFile) {
|
||||||
MainOutput.report('Fail to export documentation of ' + path,
|
MainOutput.report('Fail to export documentation of ' + path,
|
||||||
ReportType.Error);
|
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;
|
return undefined;
|
||||||
}
|
}
|
||||||
const markdownStringPromises = [];
|
const markdownStringPromises = [];
|
||||||
|
@ -161,21 +161,18 @@ class PpyAction extends BaseAction {
|
|||||||
console.log('PpyAction add');
|
console.log('PpyAction add');
|
||||||
assert.equal(hdlPath.toSlash(path), opeParam.propertyJsonPath);
|
assert.equal(hdlPath.toSlash(path), opeParam.propertyJsonPath);
|
||||||
await this.updateProperty(Event.Add, m);
|
await this.updateProperty(Event.Add, m);
|
||||||
prjManage.refreshPrjFolder();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async unlink(path: string, m: HdlMonitor): Promise<void> {
|
async unlink(path: string, m: HdlMonitor): Promise<void> {
|
||||||
console.log('PpyAction unlink');
|
console.log('PpyAction unlink');
|
||||||
assert.equal(hdlPath.toSlash(path), opeParam.propertyJsonPath);
|
assert.equal(hdlPath.toSlash(path), opeParam.propertyJsonPath);
|
||||||
await this.updateProperty(Event.Unlink, m);
|
await this.updateProperty(Event.Unlink, m);
|
||||||
prjManage.refreshPrjFolder();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async change(path: string, m: HdlMonitor): Promise<void> {
|
async change(path: string, m: HdlMonitor): Promise<void> {
|
||||||
console.log('PpyAction change');
|
console.log('PpyAction change');
|
||||||
assert.equal(hdlPath.toSlash(path), opeParam.propertyJsonPath);
|
assert.equal(hdlPath.toSlash(path), opeParam.propertyJsonPath);
|
||||||
await this.updateProperty(Event.Change, m);
|
await this.updateProperty(Event.Change, m);
|
||||||
prjManage.refreshPrjFolder();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// get path set from opeParam that used to tell if need to remake HdlMonitor
|
// 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
|
// when delete, make ws path to be main parse path
|
||||||
if (e === Event.Unlink) {
|
if (e === Event.Unlink) {
|
||||||
console.log('unlink ppy, PrjInfoDefaults.arch:', PrjInfoDefaults.arch);
|
console.log('unlink ppy, PrjInfoDefaults.arch:', PrjInfoDefaults.arch);
|
||||||
|
|
||||||
rawPrjInfo.arch = PrjInfoDefaults.arch;
|
rawPrjInfo.arch = PrjInfoDefaults.arch;
|
||||||
}
|
}
|
||||||
|
|
||||||
opeParam.mergePrjInfo(rawPrjInfo);
|
opeParam.mergePrjInfo(rawPrjInfo);
|
||||||
|
await prjManage.refreshPrjFolder();
|
||||||
|
|
||||||
const currentPathSet = this.getImportantPathSet();
|
const currentPathSet = this.getImportantPathSet();
|
||||||
const currentLibState = opeParam.prjInfo.library.state;
|
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
|
endmodule
|
||||||
|
Loading…
x
Reference in New Issue
Block a user