Skip to content

Commit 7d47cd2

Browse files
committed
1 parent be5b4fc commit 7d47cd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/extensions/browser/extensionsActions.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ export abstract class AbstractInstallAction extends ExtensionAction {
286286
if (runningExtension && !(runningExtension.activationEvents && runningExtension.activationEvents.some(activationEent => activationEent.startsWith('onLanguage')))) {
287287
const action = await this.getThemeAction(extension);
288288
if (action) {
289+
action.extension = extension;
289290
try {
290291
return action.run({ showCurrentTheme: true, ignoreFocusLost: true });
291292
} finally {
@@ -297,7 +298,7 @@ export abstract class AbstractInstallAction extends ExtensionAction {
297298

298299
}
299300

300-
private async getThemeAction(extension: IExtension): Promise<IAction | undefined> {
301+
private async getThemeAction(extension: IExtension): Promise<ExtensionAction | undefined> {
301302
const colorThemes = await this.workbenchThemeService.getColorThemes();
302303
if (colorThemes.some(theme => isThemeFromExtension(theme, extension))) {
303304
return this.instantiationService.createInstance(SetColorThemeAction);

0 commit comments

Comments
 (0)