move custom monaco themes to own folder

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2021-11-03 12:46:07 +02:00
1 parent 277dfb2e3d
commit bc7a0b60be
2 files changed
+2 -2

No files matched your search

@@ -21,7 +21,7 @@
// Monaco editor themes customization
import { editor } from "monaco-editor";
import cloudsMidnight from "./monaco-theme.clouds-midnight.json";
import cloudsMidnight from "./monaco-themes/clouds-midnight.json";
export type MonacoTheme = "vs" | "vs-dark" | "hc-black" | MonacoCustomTheme;
export type MonacoCustomTheme = "clouds-midnight";
@@ -42,5 +42,5 @@ export function registerCustomThemes(): void {
}
export async function loadCustomTheme(name: string): Promise<MonacoThemeData> {
return import(`./monaco-theme.${name}.json`);
return import(`./monaco-themes/${name}.json`);
}