fix(notebooks): normalize icon paths across platforms

This commit is contained in:
Yuri Karamian committed 2026-08-15 01:40:14 +02:00
1 parent 27609fb4f3
commit 87c879bcac
4 files changed
+70 -25

No files matched your search

+4
View File
@@ -39,6 +39,10 @@ const BUILTIN_IDS: Record<NotebookIconId, true> = {
palette: true
};
export function normalizeNotebookIconKey(path: string): string {
return path.replace(/\\/g, '/');
}
export function encodeBuiltinNotebookIcon(icon: NotebookIconId): string {
return `${BUILTIN_PREFIX}${icon}`;
}