MCPcopy Create free account
hub / github.com/CatMuse/HiNote / registerCommands

Function registerCommands

src/commands/index.ts:10–20  ·  view source on GitHub ↗
(
    plugin: Plugin,
    windowManager: WindowManager,
    ensureInitialized: () => Promise<void>
)

Source from the content-addressed store, hash-verified

8 * 这是命令注册的统一入口
9 */
10export function registerCommands(
11 plugin: Plugin,
12 windowManager: WindowManager,
13 ensureInitialized: () => Promise<void>
14): void {
15 // 注册打开评论面板命令(右侧边栏)
16 registerOpenCommentPanelCommand(plugin, windowManager, ensureInitialized);
17
18 // 注册在主窗口打开评论面板命令
19 registerOpenMainWindowCommand(plugin, windowManager, ensureInitialized);
20}
21
22/**
23 * 获取窗口管理器实例

Callers 1

registerPluginCommandsFunction · 0.90

Tested by

no test coverage detected