(
plugin: Plugin,
windowManager: WindowManager,
ensureInitialized: () => Promise<void>
)
| 8 | * 这是命令注册的统一入口 |
| 9 | */ |
| 10 | export 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 | * 获取窗口管理器实例 |
no test coverage detected