tonymio_openloops-hidden-files/src
maltaisio 8f744b9cf2
fix(settings): support Obsidian < 1.13 via display() fallback; reveal .obsidian
v1.1.0 adopted the declarative settings API (getSettingDefinitions), which only
exists in Obsidian 1.13+. On older builds (e.g. 1.12.7) that method is never
called and, with display() removed, the settings tab rendered blank.

The settings tab is now dual-mode: getSettingDefinitions() for 1.13+ (settings
search, warning-free) and a display() fallback for older desktop builds. A
private renderFallback() holds the imperative UI so no code references the
deprecated display() by name; refresh() picks update() (1.13+) or renderFallback().
minAppVersion is back to 1.5.0. Still 0 eslint problems.

Also include Obsidian's config dir (.obsidian) in the detected-folders picker so
it can be revealed on request; documented as chatty (frequent config rewrites).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JxaZ6Z7PqY5fK1rfc12ikX
2026-07-17 10:39:09 -06:00
..
main.ts fix(settings): support Obsidian < 1.13 via display() fallback; reveal .obsidian 2026-07-17 10:39:09 -06:00