From 912bb683695358a54ae0c670461738984cbb5b95 Mon Sep 17 00:00:00 2001 From: Bhavya U Date: Mon, 28 Oct 2024 09:08:10 -0700 Subject: [PATCH] fix: Dont show chat panel on ext updates (#232328) --- .../contrib/chat/browser/actions/chatGettingStarted.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.ts b/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.ts index 1cecb8cd9a318..1868e212d7507 100644 --- a/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.ts +++ b/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.ts @@ -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 { @@ -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; }