(
plugin: Plugin,
windowManager: WindowManager,
ensureInitialized: () => Promise<void>
)
| 18 | * 注册命令 |
| 19 | */ |
| 20 | export 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 | } |
no test coverage detected