diff --git a/src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts b/src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts index dda67f5657282ec31b7c398bdab5fee38cc4c7fb..8f915eaa2cadc336dbc2d84021c90067a65c219f 100644 --- a/src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts +++ b/src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts @@ -517,13 +517,12 @@ export class WorkbenchThemeService implements IWorkbenchThemeService { } private hasCustomizationChanged(newColorCustomizations: IColorCustomizations, newColorIds: string[]): boolean { - let prevColorIds = Object.keys(this.colorCustomizations); - if (prevColorIds.length !== this.numberOfColorCustomizations) { + if (newColorIds.length !== this.numberOfColorCustomizations) { return true; } - for (let key of prevColorIds) { - let color = newColorCustomizations[key]; - if (!color || color !== this.colorCustomizations[key]) { + for (let key of newColorIds) { + let color = this.colorCustomizations[key]; + if (!color || color !== newColorCustomizations[key]) { return true; } }