()
| 677 | } |
| 678 | |
| 679 | private async loadSettingsData(): Promise<LoadedSettingsData | null> { |
| 680 | this.settingsLoadCompromised = false; |
| 681 | |
| 682 | const result = await loadPluginSettingsDataWithRetry(this); |
| 683 | this.settingsLoadCompromised = result.compromised; |
| 684 | if (result.compromised) { |
| 685 | tasknotesLogger.error("Settings data could not be read safely", { |
| 686 | category: "internal", |
| 687 | operation: "load-settings-data", |
| 688 | details: { |
| 689 | reason: "Settings data file exists, but Obsidian returned no settings data.", |
| 690 | settingsSavesBlocked: true, |
| 691 | }, |
| 692 | }); |
| 693 | } |
| 694 | return result.data; |
| 695 | } |
| 696 | |
| 697 | async loadSettings() { |
| 698 | const loadedData = await this.loadSettingsData(); |
no test coverage detected