1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

permit plugin theme to change other monaco options

This commit is contained in:
Steve-Mcl 2021-07-31 10:24:48 +01:00
parent 8a1d81989b
commit 08049252f2

View File

@ -247,8 +247,7 @@ module.exports = {
theme.page._.scripts = scriptFiles.concat(theme.page._.scripts || [])
}
if(theme.codeEditor) {
theme.codeEditor.options = theme.codeEditor.options || {};
theme.codeEditor.options.theme = themePlugin.monacoTheme;
theme.codeEditor.options = Object.assign({}, theme.codeEditor.options, themePlugin.monacoOptions);
}
}
activeThemeInitialised = true;