MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / constructor

Method constructor

src/services/ViewStateManager.ts:23–31  ·  view source on GitHub ↗
(app: App, plugin: TaskNotesPlugin)

Source from the content-addressed store, hash-verified

21 private plugin: TaskNotesPlugin;
22
23 constructor(app: App, plugin: TaskNotesPlugin) {
24 super();
25 this.app = app;
26 this.plugin = plugin;
27 this.loadFromStorage();
28 this.loadPreferencesFromStorage();
29 // Note: migrateAndLoadSavedViews() is async and called separately during initialization
30 this.savedViews = [...this.plugin.settings.savedViews];
31 }
32
33 /**
34 * Initialize saved views with migration support (call this after construction)

Callers

nothing calls this directly

Calls 2

loadFromStorageMethod · 0.95

Tested by

no test coverage detected