Skip to content

Commit faca6fd

Browse files
authored
Merge pull request #1069 from microsoft/isidorn/metropolitan-kingfisher
add copilot tag
2 parents a4930cc + 7fbc8c6 commit faca6fd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/package.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ export class TagsProcessor extends BaseProcessor {
675675
const debuggers = doesContribute('debuggers') ? ['debuggers'] : [];
676676
const json = doesContribute('jsonValidation') ? ['json'] : [];
677677
const remoteMenu = doesContribute('menus', 'statusBar/remoteIndicator') ? ['remote-menu'] : [];
678-
const chatParticipants = doesContribute('chatParticipants') ? ['chat-participant'] : [];
678+
const chatParticipants = doesContribute('chatParticipants') ? ['chat-participant', 'copilot'] : [];
679679

680680
const localizationContributions = ((contributes && contributes['localizations']) ?? []).reduce<string[]>(
681681
(r, l) => [...r, `lp-${l.languageId}`, ...toLanguagePackTags(l.translations, l.languageId)],
@@ -1636,7 +1636,7 @@ async function collectAllFiles(
16361636
cwd: string,
16371637
dependencies: 'npm' | 'yarn' | 'none' | undefined,
16381638
dependencyEntryPoints?: string[],
1639-
followSymlinks:boolean = true
1639+
followSymlinks: boolean = true
16401640
): Promise<string[]> {
16411641
const deps = await getDependencies(cwd, dependencies, dependencyEntryPoints);
16421642
const promises = deps.map(dep =>
@@ -1670,7 +1670,7 @@ function collectFiles(
16701670
ignoreFile?: string,
16711671
manifestFileIncludes?: string[],
16721672
readmePath?: string,
1673-
followSymlinks:boolean = false
1673+
followSymlinks: boolean = false
16741674
): Promise<string[]> {
16751675
readmePath = readmePath ?? 'README.md';
16761676
const notIgnored = ['!package.json', `!${readmePath}`];

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)