Merge pull request from Steve-Mcl/fix-code-editor-theme-from-theme

Allow codeEditor theme to be set even if `codeEditor` is not set in settings.js
pull/3797/head
Nick O'Leary 2022-07-21 16:27:41 +01:00 committed by GitHub
commit 17d9c2577e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions
packages/node_modules/@node-red/editor-api/lib/editor

View File

@ -327,9 +327,8 @@ module.exports = {
themeContext.header.url = themePlugin.header.url || themeContext.header.url
}
}
if(theme.codeEditor) {
theme.codeEditor.options = Object.assign({}, themePlugin.monacoOptions, theme.codeEditor.options);
}
theme.codeEditor = theme.codeEditor || {}
theme.codeEditor.options = Object.assign({}, themePlugin.monacoOptions, theme.codeEditor.options);
}
activeThemeInitialised = true;
}