(plugin: CommentPlugin, windowManager: WindowManager)
| 20 | } |
| 21 | |
| 22 | export function registerPluginRibbon(plugin: CommentPlugin, windowManager: WindowManager): void { |
| 23 | plugin.addRibbonIcon( |
| 24 | 'highlighter', |
| 25 | 'HiNote', |
| 26 | async () => { |
| 27 | await plugin.ensureServicesInitialized(); |
| 28 | await windowManager.openCommentPanelInSidebar(); |
| 29 | } |
| 30 | ); |
| 31 | } |
| 32 | |
| 33 | export function registerPluginCommands(plugin: CommentPlugin, windowManager: WindowManager): void { |
| 34 | registerCommands(plugin, windowManager, async () => { |
no test coverage detected