From 5058d158fcf5ff18ba193bbc0059988aa91b42fe Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 13 Apr 2023 23:12:07 +0200 Subject: [PATCH] fix python tabSize issue --- frontend/src/lib/components/Editor.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/Editor.svelte b/frontend/src/lib/components/Editor.svelte index 589539dbba..da6e849636 100644 --- a/frontend/src/lib/components/Editor.svelte +++ b/frontend/src/lib/components/Editor.svelte @@ -508,7 +508,7 @@ async function loadMonaco() { const model = meditor.createModel(code, lang, mUri.parse(uri)) - model.updateOptions(updateOptions) + model.updateOptions(lang == 'python' ? { tabSize: 4, insertSpaces: true } : updateOptions) editor = meditor.create(divEl as HTMLDivElement, { ...editorConfig(model, code, lang, automaticLayout, fixedOverflowWidgets), overflowWidgetsDomNode: widgets,