mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
permit plugin theme to change other monaco options
This commit is contained in:
parent
8a1d81989b
commit
08049252f2
@ -247,8 +247,7 @@ module.exports = {
|
|||||||
theme.page._.scripts = scriptFiles.concat(theme.page._.scripts || [])
|
theme.page._.scripts = scriptFiles.concat(theme.page._.scripts || [])
|
||||||
}
|
}
|
||||||
if(theme.codeEditor) {
|
if(theme.codeEditor) {
|
||||||
theme.codeEditor.options = theme.codeEditor.options || {};
|
theme.codeEditor.options = Object.assign({}, theme.codeEditor.options, themePlugin.monacoOptions);
|
||||||
theme.codeEditor.options.theme = themePlugin.monacoTheme;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
activeThemeInitialised = true;
|
activeThemeInitialised = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user