提交 2868ee6e 编写于 作者: M Martin Aeschlimann

[themes] fix custom color updating

上级 be3e2a6d
...@@ -517,13 +517,12 @@ export class WorkbenchThemeService implements IWorkbenchThemeService { ...@@ -517,13 +517,12 @@ export class WorkbenchThemeService implements IWorkbenchThemeService {
} }
private hasCustomizationChanged(newColorCustomizations: IColorCustomizations, newColorIds: string[]): boolean { private hasCustomizationChanged(newColorCustomizations: IColorCustomizations, newColorIds: string[]): boolean {
let prevColorIds = Object.keys(this.colorCustomizations); if (newColorIds.length !== this.numberOfColorCustomizations) {
if (prevColorIds.length !== this.numberOfColorCustomizations) {
return true; return true;
} }
for (let key of prevColorIds) { for (let key of newColorIds) {
let color = newColorCustomizations[key]; let color = this.colorCustomizations[key];
if (!color || color !== this.colorCustomizations[key]) { if (!color || color !== newColorCustomizations[key]) {
return true; return true;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册