Skip to content

Commit

Permalink
fix: Dont show chat panel on ext updates (#232328)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavyaus authored Oct 28, 2024
1 parent d7c7d5b commit 912bb68
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ICommandService } from '../../../../../platform/commands/common/command
import { IExtensionService } from '../../../../services/extensions/common/extensions.js';
import { ExtensionIdentifier } from '../../../../../platform/extensions/common/extensions.js';
import { CHAT_OPEN_ACTION_ID } from './chatActions.js';
import { IExtensionManagementService } from '../../../../../platform/extensionManagement/common/extensionManagement.js';
import { IExtensionManagementService, InstallOperation } from '../../../../../platform/extensionManagement/common/extensionManagement.js';


export class ChatGettingStartedContribution extends Disposable implements IWorkbenchContribution {
Expand All @@ -36,7 +36,7 @@ export class ChatGettingStartedContribution extends Disposable implements IWorkb

this._register(this.extensionManagementService.onDidInstallExtensions(async (result) => {
for (const e of result) {
if (ExtensionIdentifier.equals(this.productService.gitHubEntitlement!.extensionId, e.identifier.id)) {
if (ExtensionIdentifier.equals(this.productService.gitHubEntitlement!.extensionId, e.identifier.id) && e.operation === InstallOperation.Install) {
this.recentlyInstalled = true;
return;
}
Expand Down

0 comments on commit 912bb68

Please sign in to comment.