From 87f8090bb97897557d5601f04482a523cc25a7a7 Mon Sep 17 00:00:00 2001 From: Jaret Burkett Date: Mon, 14 Sep 2026 09:04:30 -0600 Subject: [PATCH] Force advanced editor to 2 spaces indentation --- ui/src/components/AdvancedConfigEditor.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/src/components/AdvancedConfigEditor.tsx b/ui/src/components/AdvancedConfigEditor.tsx index ad6f916..f7fc6f9 100644 --- a/ui/src/components/AdvancedConfigEditor.tsx +++ b/ui/src/components/AdvancedConfigEditor.tsx @@ -52,6 +52,9 @@ export default function AdvancedConfigEditor({ config, setConfig, transformOn monacoRef.current = monaco; isEditorMounted.current = true; + // Model auto-detects indentation on creation; force 2 spaces + editor.getModel()?.updateOptions({ tabSize: 2, insertSpaces: true }); + // Initial content setup try { const yamlContent = toYaml(config); @@ -161,6 +164,9 @@ export default function AdvancedConfigEditor({ config, setConfig, transformOn minimap: { enabled: true }, scrollBeyondLastLine: false, automaticLayout: true, + tabSize: 2, + insertSpaces: true, + detectIndentation: false, }} />