diff --git a/src/package.ts b/src/package.ts index b0b95ea3..f7e65e8e 100644 --- a/src/package.ts +++ b/src/package.ts @@ -676,6 +676,7 @@ export class TagsProcessor extends BaseProcessor { const json = doesContribute('jsonValidation') ? ['json'] : []; const remoteMenu = doesContribute('menus', 'statusBar/remoteIndicator') ? ['remote-menu'] : []; const chatParticipants = doesContribute('chatParticipants') ? ['chat-participant'] : []; + const copilot = doesContribute('chatParticipants') ? ['copilot'] : []; const localizationContributions = ((contributes && contributes['localizations']) ?? []).reduce( (r, l) => [...r, `lp-${l.languageId}`, ...toLanguagePackTags(l.translations, l.languageId)], @@ -717,6 +718,7 @@ export class TagsProcessor extends BaseProcessor { ...json, ...remoteMenu, ...chatParticipants, + ...copilot, ...localizationContributions, ...languageContributions, ...languageActivations, diff --git a/src/test/package.test.ts b/src/test/package.test.ts index ba18dac3..e020e0a6 100644 --- a/src/test/package.test.ts +++ b/src/test/package.test.ts @@ -1332,7 +1332,7 @@ describe('toVsixManifest', () => { .then(result => assert.deepEqual(result.PackageManifest.Metadata[0].Tags[0], 'snippet,__web_extension')); }); - it('should automatically add chatParticipant tag', () => { + it('should automatically add chatParticipant and copilot tag', () => { const manifest = { name: 'test', publisher: 'mocha', @@ -1345,7 +1345,7 @@ describe('toVsixManifest', () => { return _toVsixManifest(manifest, []) .then(parseXmlManifest) - .then(result => assert.deepEqual(result.PackageManifest.Metadata[0].Tags[0], 'chat-participant,__web_extension')); + .then(result => assert.deepEqual(result.PackageManifest.Metadata[0].Tags[0], 'chat-participant,copilot,__web_extension')); }); it('should remove duplicate tags', () => {