提交 85831ea2 编写于 作者: M Martin Aeschlimann

null check for 'workbench.colorCustomizations' (for #40329)

上级 4d2d726e
......@@ -83,7 +83,7 @@ export class WorkbenchThemeService implements IWorkbenchThemeService {
private _configurationWriter: ConfigurationWriter;
private get colorCustomizations(): IColorCustomizations {
return this.configurationService.getValue<IColorCustomizations>(CUSTOM_WORKBENCH_COLORS_SETTING);
return this.configurationService.getValue<IColorCustomizations>(CUSTOM_WORKBENCH_COLORS_SETTING) || {};
}
private get tokenColorCustomizations(): ITokenColorCustomizations {
......@@ -530,6 +530,7 @@ configurationRegistry.registerConfiguration({
properties: {
[CUSTOM_EDITOR_COLORS_SETTING]: {
description: nls.localize('editorColors', "Overrides editor colors and font style from the currently selected color theme."),
type: 'object',
default: {},
additionalProperties: false,
properties: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册