set code before running runCmdAction

This commit is contained in:
Ruben Fiszel
2022-10-02 04:41:22 +02:00
parent c71ffca4fc
commit d1e9b97e93

View File

@@ -90,6 +90,7 @@
editor.getAction('editor.action.formatDocument').run()
if (formatAction) {
formatAction()
code = getCode()
}
}
}
@@ -111,6 +112,7 @@
editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter, function () {
if (cmdEnterAction) {
code = getCode()
cmdEnterAction()
}
})
@@ -130,6 +132,7 @@
})
editor.onDidBlurEditorText(() => {
code = getCode()
dispatch('blur')
})