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

Function registerPluginViews

src/plugin/PluginBootstrap.ts:11–20  ·  view source on GitHub ↗
(plugin: CommentPlugin)

Source from the content-addressed store, hash-verified

9}
10
11export 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
22export function registerPluginRibbon(plugin: CommentPlugin, windowManager: WindowManager): void {
23 plugin.addRibbonIcon(

Callers 1

onloadMethod · 0.90

Calls 2

Tested by

no test coverage detected