()
| 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 |
no test coverage detected