Skip to content

Commit b665f24

Browse files
committed
add copilot tag
1 parent a4930cc commit b665f24

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/package.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ export class TagsProcessor extends BaseProcessor {
676676
const json = doesContribute('jsonValidation') ? ['json'] : [];
677677
const remoteMenu = doesContribute('menus', 'statusBar/remoteIndicator') ? ['remote-menu'] : [];
678678
const chatParticipants = doesContribute('chatParticipants') ? ['chat-participant'] : [];
679+
const copilot = doesContribute('chatParticipants') ? ['copilot'] : [];
679680

680681
const localizationContributions = ((contributes && contributes['localizations']) ?? []).reduce<string[]>(
681682
(r, l) => [...r, `lp-${l.languageId}`, ...toLanguagePackTags(l.translations, l.languageId)],
@@ -717,6 +718,7 @@ export class TagsProcessor extends BaseProcessor {
717718
...json,
718719
...remoteMenu,
719720
...chatParticipants,
721+
...copilot,
720722
...localizationContributions,
721723
...languageContributions,
722724
...languageActivations,

src/test/package.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ describe('toVsixManifest', () => {
13321332
.then(result => assert.deepEqual(result.PackageManifest.Metadata[0].Tags[0], 'snippet,__web_extension'));
13331333
});
13341334

1335-
it('should automatically add chatParticipant tag', () => {
1335+
it('should automatically add chatParticipant and copilot tag', () => {
13361336
const manifest = {
13371337
name: 'test',
13381338
publisher: 'mocha',
@@ -1345,7 +1345,7 @@ describe('toVsixManifest', () => {
13451345

13461346
return _toVsixManifest(manifest, [])
13471347
.then(parseXmlManifest)
1348-
.then(result => assert.deepEqual(result.PackageManifest.Metadata[0].Tags[0], 'chat-participant,__web_extension'));
1348+
.then(result => assert.deepEqual(result.PackageManifest.Metadata[0].Tags[0], 'chat-participant,copilot,__web_extension'));
13491349
});
13501350

13511351
it('should remove duplicate tags', () => {

0 commit comments

Comments
 (0)