代码优化

This commit is contained in:
xintaofei
2026-03-15 16:20:54 +08:00
parent 838185fe35
commit 9688248200
3 changed files with 3 additions and 5 deletions

View File

@@ -15,6 +15,7 @@ import {
ContextMenuTrigger,
} from "@/components/ui/context-menu"
import { defineMonacoThemes, useMonacoThemeSync } from "@/lib/monaco-themes"
import "@/lib/monaco-local"
const AUTO_SAVE_DELAY_MS = 5000
@@ -291,8 +292,6 @@ function setEditorHiddenAreas(
hiddenAreaEditor.setHiddenAreas?.(ranges)
}
import "@/lib/monaco-local"
const MonacoEditor = dynamic(async () => import("@monaco-editor/react"), {
ssr: false,
})