import { ensureMonacoEnvironment } from "./helpers/ensure-monaco-environment.js";
import { applyScalarTheme } from "./helpers/theme/apply-scalar-theme.js";
import { toValue, watch } from "vue";
import "monaco-editor/esm/vs/editor/contrib/folding/browser/folding.css";
import "monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.css";
//#region src/v2/features/editor/config.ts
/**
* Configures the Monaco editor with custom Scala theme settings.
* Applies the theme whenever the theme or dark mode value changes.
* In development mode, ensures Monaco environment is configured (worker setup handled by Vite config).
*/
var useMonacoEditorConfiguration = ({ theme, darkMode }) => {
	ensureMonacoEnvironment();
	watch([() => toValue(theme), () => toValue(darkMode)], ([theme, darkMode]) => applyScalarTheme(theme, darkMode), { immediate: true });
};
//#endregion
export { useMonacoEditorConfiguration };

//# sourceMappingURL=config.js.map