MCPcopy
hub / github.com/ZToolsCenter/ZTools / readPluginConfig

Method readPluginConfig

src/main/managers/pluginManager.ts:122–125  ·  view source on GitHub ↗

* 读取 plugin.json 配置

(pluginPath: string)

Source from the content-addressed store, hash-verified

120 * 读取 plugin.json 配置
121 */
122 private readPluginConfig(pluginPath: string): any {
123 const pluginJsonPath = path.join(pluginPath, 'plugin.json')
124 return JSON.parse(fsSync.readFileSync(pluginJsonPath, 'utf-8'))
125 }
126
127 /**
128 * 判断指定 feature 是否设置了 mainHide

Callers 6

isFeatureMainHideMethod · 0.95
createNewPluginViewMethod · 0.95
preloadPluginMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected