Steps to reproduce
In the sandbox vault, create and enable a snippet called
app.vault.config.enabledCssSnippets will return
['test']. Then delete
test.css (without disabling it first) and restart Obsidian.
app.vault.config.enabledCssSnippets still returns
app.vault.config.enabledCssSnippets should not return non-exist snippets.
app.vault.config.enabledCssSnippets returns previously-registered non-exist snippets.
- Operating system: macOS 12.6.1
- Debug info:
SYSTEM INFO: Obsidian version: v1.1.14 Installer version: v1.1.9 Operating system: Darwin Kernel Version 21.6.0: Thu Sep 29 20:13:56 PDT 2022; root:xnu-8020.240.7~1/RELEASE_ARM64_T6000 21.6.0 Login status: logged in Catalyst license: insider Insider build toggle: on Live preview: on Legacy editor: off Base theme: dark Community theme: none Snippets enabled: 1 Restricted mode: on RECOMMENDATIONS: Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Notice that the debug info shows there is one enabled snippet. However, here is the info in the appearance tab: