Show toast on plugin event handling errors instead of crashing

Also set folder context on template render and fix timestamp function
This commit is contained in:
Gregory Schier committed 2025-10-06 06:53:45 -07:00
1 parent dbc606fb53
commit 485a9ea47c
18 files changed
+203 -130

No files matched your search

+2
View File
@@ -21,6 +21,8 @@ export function languageFromContentType(
} else if (justContentType.includes('javascript')) {
// Sometimes `application/javascript` returns JSON, so try detecting that
return detectFromContent(content, 'javascript');
} else if (justContentType.includes('markdown')) {
return 'markdown';
}
return detectFromContent(content, 'text');