MCPcopy
hub / github.com/callumalpass/tasknotes / initializeCalendarProviders

Function initializeCalendarProviders

src/bootstrap/pluginBootstrap.ts:219–226  ·  view source on GitHub ↗
(plugin: TaskNotesPlugin)

Source from the content-addressed store, hash-verified

217}
218
219export function initializeCalendarProviders(plugin: TaskNotesPlugin): void {
220 plugin.oauthService = new OAuthService(plugin);
221 plugin.googleCalendarService = new GoogleCalendarService(plugin, plugin.oauthService);
222 plugin.microsoftCalendarService = new MicrosoftCalendarService(plugin, plugin.oauthService);
223 plugin.calendarProviderRegistry = new CalendarProviderRegistry();
224 plugin.calendarProviderRegistry.register(plugin.googleCalendarService);
225 plugin.calendarProviderRegistry.register(plugin.microsoftCalendarService);
226}
227
228export async function registerBasesIntegration(plugin: TaskNotesPlugin): Promise<void> {
229 if (!plugin.settings?.enableBases || plugin.basesRegistered) {

Callers 1

onloadMethod · 0.90

Calls 1

registerMethod · 0.65

Tested by

no test coverage detected