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

Method ensureStarterNote

src/main.ts:883–906  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

881 }
882
883 async ensureStarterNote(): Promise<void> {
884 const shouldCreateStarterNote = this.shouldCreateStarterNoteOnStartup;
885 this.shouldCreateStarterNoteOnStartup = false;
886 await ensureStarterNoteFile({
887 app: this.app,
888 settings: this.settings,
889 shouldCreateStarterNote,
890 saveSettings: () => this.saveSettingsDataOnly(),
891 warn: (message, error) => {
892 if (error === undefined) {
893 tasknotesLogger.warn(message, {
894 category: "configuration",
895 operation: "ensure-starter-note",
896 });
897 } else {
898 tasknotesLogger.warn(message, {
899 category: "configuration",
900 operation: "ensure-starter-note",
901 error,
902 });
903 }
904 },
905 });
906 }
907
908 /**
909 * Open and activate the search pane with a tag query

Callers 1

Calls 2

saveSettingsDataOnlyMethod · 0.95
warnMethod · 0.80

Tested by

no test coverage detected