MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / clearPluginFeatures

Method clearPluginFeatures

src/main/api/plugin/feature.ts:232–246  ·  view source on GitHub ↗

* 清理插件的动态 features

(pluginName: string)

Source from the content-addressed store, hash-verified

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// 导出单例

Calls 3

getMethod · 0.65
removeMethod · 0.45

Tested by

no test coverage detected