Skip to content

deprecate github.copilot extension#292498

Merged
sandy081 merged 2 commits intomainfrom
sandy081/sweet-wasp
Feb 3, 2026
Merged

deprecate github.copilot extension#292498
sandy081 merged 2 commits intomainfrom
sandy081/sweet-wasp

Conversation

@sandy081
Copy link
Member

@sandy081 sandy081 commented Feb 3, 2026

deprecate github.copilot extension and uninstall it automatically

Copilot AI review requested due to automatic review settings February 3, 2026 09:41
@sandy081 sandy081 enabled auto-merge (squash) February 3, 2026 09:41
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 3, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Deprecates the GitHub.copilot extension (as configured via productService.defaultChatAgent.extensionId) by marking it as non-installable and defining an auto-migration target, and adjusts uninstall behavior to avoid cascading uninstalls via extension packs.

Changes:

  • Adds a hard-coded deprecation entry for the default chat agent “completions” extension, pointing to defaultChatAgent.chatExtensionId as the replacement.
  • Disallows install of the deprecated extension and enables auto-migration behavior.
  • Skips uninstalling extension-pack contents when uninstalling the deprecated defaultChatAgent.extensionId extension.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/vs/platform/extensionManagement/common/extensionGalleryService.ts Injects a deprecation + migration mapping for defaultChatAgent.extensionId to defaultChatAgent.chatExtensionId.
src/vs/platform/extensionManagement/common/abstractExtensionManagementService.ts Prevents uninstall from including packed extensions when uninstalling defaultChatAgent.extensionId.

Comment on lines 1979 to 1985
deprecated[this.productService.defaultChatAgent.extensionId.toLowerCase()] = {
disallowInstall: true,
extension: {
id: this.productService.defaultChatAgent.chatExtensionId,
displayName: 'GitHub Copilot Chat',
autoMigrate: { storage: false },
preRelease: this.productService.quality !== 'stable'
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting autoMigrate here will trigger migrateUnsupportedExtensions to uninstall the deprecated extension and install the replacement, but that migration currently calls installFromGallery(..., { installPreReleaseVersion: true, ... }) unconditionally. As a result, even on stable this replacement can be marked/treated as a pre-release install (affecting update channel/metadata) regardless of the preRelease flag set here. Either adjust the migration logic to respect deprecated.extension.preRelease, or avoid using the auto-migrate path if the intent is to install the release channel on stable.

Suggested change
deprecated[this.productService.defaultChatAgent.extensionId.toLowerCase()] = {
disallowInstall: true,
extension: {
id: this.productService.defaultChatAgent.chatExtensionId,
displayName: 'GitHub Copilot Chat',
autoMigrate: { storage: false },
preRelease: this.productService.quality !== 'stable'
const isPreReleaseDefaultChatAgent = this.productService.quality !== 'stable';
deprecated[this.productService.defaultChatAgent.extensionId.toLowerCase()] = {
disallowInstall: true,
extension: {
id: this.productService.defaultChatAgent.chatExtensionId,
displayName: 'GitHub Copilot Chat',
...(isPreReleaseDefaultChatAgent ? { autoMigrate: { storage: false }, preRelease: true } : {})

Copilot uses AI. Check for mistakes.
@sandy081 sandy081 merged commit 04b845c into main Feb 3, 2026
22 checks passed
@sandy081 sandy081 deleted the sandy081/sweet-wasp branch February 3, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants