提交 54440834 编写于 作者: N Nick Snyder

Do not unregister themingParticipantChangeListener.

Fixes #27097
上级 fc4f37fb
......@@ -396,10 +396,6 @@ export class WorkbenchThemeService implements IWorkbenchThemeService {
themeId = validateThemeId(themeId); // migrate theme ids
if (this.themingParticipantChangeListener) {
this.themingParticipantChangeListener.dispose();
this.themingParticipantChangeListener = null;
}
return this.findThemeData(themeId, DEFAULT_THEME_ID).then(themeData => {
if (themeData) {
......@@ -446,7 +442,9 @@ export class WorkbenchThemeService implements IWorkbenchThemeService {
$(this.container).addClass(newTheme.id);
}
this.currentColorTheme = newTheme;
this.themingParticipantChangeListener = themingRegistry.onThemingParticipantAdded(p => this.updateDynamicCSSRules(this.currentColorTheme));
if (!this.themingParticipantChangeListener) {
this.themingParticipantChangeListener = themingRegistry.onThemingParticipantAdded(p => this.updateDynamicCSSRules(this.currentColorTheme));
}
this.sendTelemetry(newTheme.id, newTheme.extensionData, 'color');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册