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

[themes] fix custom color updating

上级 be3e2a6d
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册