(plugin: CommentPlugin)
| 9 | } |
| 10 | |
| 11 | export function registerPluginViews(plugin: CommentPlugin): void { |
| 12 | plugin.registerView( |
| 13 | VIEW_TYPE_HINOTE, |
| 14 | (leaf: WorkspaceLeaf) => { |
| 15 | void plugin.ensureServicesInitialized(); |
| 16 | const services = plugin.requireInitializedServices(); |
| 17 | return new HiNoteView(leaf, plugin, services); |
| 18 | } |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | export function registerPluginRibbon(plugin: CommentPlugin, windowManager: WindowManager): void { |
| 23 | plugin.addRibbonIcon( |
no test coverage detected