修复 include 搜索路径的bug

This commit is contained in:
锦恢 2025-01-05 21:51:46 +08:00
parent cff21c2572
commit 69ef25bd52
3 changed files with 2 additions and 18 deletions

View File

@ -200,22 +200,7 @@
"xc7z035ffg676-2", "xc7z035ffg676-2",
"xc7z020clg484-1" "xc7z020clg484-1"
] ]
}, }
"iverilogCompileOptions": {
"type": "object",
"description": "options to define iverilog arguments",
"properties": {
"standard": {
"type": "string",
"description": "value of argument -g, default is -g2012",
"default": "2012"
},
"includes": {
"type": "array",
"description": "value of argument -I"
}
}
}
}, },
"required": [ "required": [
"toolChain", "toolChain",

View File

@ -480,8 +480,6 @@ class HdlParam {
return; return;
} }
console.log('fast:', fast);
// 1. 更新 macro // 1. 更新 macro
moduleFile.updateMacro(fast.macro); moduleFile.updateMacro(fast.macro);

View File

@ -105,6 +105,7 @@ export class HdlAction extends BaseAction {
// 更新 hdl 文件 // 更新 hdl 文件
const fast = await LspClient.DigitalIDE?.sendRequest(SyncFastRequestType, { path, fileType, toolChain }) const fast = await LspClient.DigitalIDE?.sendRequest(SyncFastRequestType, { path, fileType, toolChain })
if (fast) { if (fast) {
console.log('update includes:', fast.macro.includes);
hdlParam.updateFast(path, fast); hdlParam.updateFast(path, fast);
} }