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

Function registerOpenCommentPanelCommand

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

Source from the content-addressed store, hash-verified

18 * 注册命令
19 */
20export function registerOpenCommentPanelCommand(
21 plugin: Plugin,
22 windowManager: WindowManager,
23 ensureInitialized: () => Promise<void>
24): void {
25 plugin.addCommand({
26 id: 'open-comment-window',
27 name: t('Open in right sidebar'),
28 callback: () => openCommentPanel(plugin, windowManager, ensureInitialized)
29 });
30}

Callers 1

registerCommandsFunction · 0.90

Calls 2

tFunction · 0.90
openCommentPanelFunction · 0.85

Tested by

no test coverage detected