From 0af577295e87a777fb0c7cc1851abc393cf2eea0 Mon Sep 17 00:00:00 2001 From: lihao550 Date: Fri, 8 Aug 2025 16:02:15 +0800 Subject: [PATCH] Initialize UI plugin configuration Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICR4YF Signed-off-by: lihao Change-Id: Ibaf609d10ac81c309b9908b542f31c4c5c45f20d --- .../build_system/src/plugins/plugins_driver.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ets2panda/driver/build_system/src/plugins/plugins_driver.ts b/ets2panda/driver/build_system/src/plugins/plugins_driver.ts index 4af2ec6aad..c8d2253cc5 100644 --- a/ets2panda/driver/build_system/src/plugins/plugins_driver.ts +++ b/ets2panda/driver/build_system/src/plugins/plugins_driver.ts @@ -166,6 +166,20 @@ export class PluginDriver { } this.logger.printInfo(`Loaded plugin: ', ${key}, ${pluginObject}`); + if (pluginObject.initApiCheckConfig) { + try { + pluginObject.initApiCheckConfig(projectConfig); + this.logger.printInfo(`Called initApiCheckConfig for plugin: ${key}`); + } catch (apiCheckError) { + const logData: LogData = LogDataFactory.newInstance( + ErrorCode.BUILDSYSTEM_LOAD_PLUGIN_FAIL, + 'Failed to call initApiCheckConfig.', + apiCheckError instanceof Error ? apiCheckError.message : String(apiCheckError) + ); + this.logger.printError(logData); + } + } + return { name: key, init: initFunction -- Gitee