fix python tabSize issue

This commit is contained in:
Ruben Fiszel
2023-04-13 23:12:07 +02:00
parent cb7e686dd9
commit 5058d158fc
+1 -1
View File
@@ -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,