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

Method init

src/main/api/plugin/internal.ts:76–80  ·  view source on GitHub ↗

* 初始化内置插件专用 API,并注册对应的 IPC 通道。

(mainWindow: Electron.BrowserWindow, pluginManager: PluginManager)

Source from the content-addressed store, hash-verified

74 * 初始化内置插件专用 API,并注册对应的 IPC 通道。
75 */
76 public init(mainWindow: Electron.BrowserWindow, pluginManager: PluginManager): void {
77 this.mainWindow = mainWindow
78 this.pluginManager = pluginManager
79 this.setupIPC()
80 }
81
82 /**
83 * 注册仅允许内置插件访问的 IPC 能力。

Callers

nothing calls this directly

Calls 1

setupIPCMethod · 0.95

Tested by

no test coverage detected