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

Method requireInitializedServices

main.ts:34–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 get highlightManager() { return this.requireInitializedServices().highlightManager; }
33
34 requireInitializedServices(): PluginServices {
35 const services = this.initManager.currentServices;
36 if (!services) {
37 throw new Error('HiNote services have not been initialized.');
38 }
39 return services;
40 }
41
42 async ensureServicesInitialized(): Promise<PluginServices> {
43 return this.initManager.ensureInitialized();

Callers 9

highlightDecoratorMethod · 0.95
fsrsManagerMethod · 0.95
eventManagerMethod · 0.95
highlightServiceMethod · 0.95
dataManagerMethod · 0.95
canvasServiceMethod · 0.95
highlightRepositoryMethod · 0.95
highlightManagerMethod · 0.95
registerPluginViewsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected