* 清理插件的动态 features
(pluginName: string)
| 230 | * 清理插件的动态 features |
| 231 | */ |
| 232 | public clearPluginFeatures(pluginName: string): void { |
| 233 | try { |
| 234 | const key = this.getDynamicFeaturesDocId(pluginName) |
| 235 | const doc = lmdbInstance.get(key) |
| 236 | if (doc) { |
| 237 | console.log('[PluginFeature] 清理动态 Feature 隔离数据:', { |
| 238 | pluginName, |
| 239 | key |
| 240 | }) |
| 241 | lmdbInstance.remove(key) |
| 242 | } |
| 243 | } catch (error) { |
| 244 | console.error('[PluginFeature] clearPluginFeatures error:', error) |
| 245 | } |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | // 导出单例 |
no test coverage detected