From c20ca3399ed036913c17461c0173fee5505a6d67 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Tue, 21 Sep 2021 14:12:21 +0100 Subject: [PATCH] codeEditor.options should take precedence - over plugins monacoOptions --- packages/node_modules/@node-red/editor-api/lib/editor/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-api/lib/editor/theme.js b/packages/node_modules/@node-red/editor-api/lib/editor/theme.js index f926af253..6ffc2fc01 100644 --- a/packages/node_modules/@node-red/editor-api/lib/editor/theme.js +++ b/packages/node_modules/@node-red/editor-api/lib/editor/theme.js @@ -254,7 +254,7 @@ module.exports = { theme.page._.scripts = scriptFiles.concat(theme.page._.scripts || []) } if(theme.codeEditor) { - theme.codeEditor.options = Object.assign({}, theme.codeEditor.options, themePlugin.monacoOptions); + theme.codeEditor.options = Object.assign({}, themePlugin.monacoOptions, theme.codeEditor.options); } } activeThemeInitialised = true;