diff --git a/src/package.ts b/src/package.ts index b0b95ea3..c005c2f2 100644 --- a/src/package.ts +++ b/src/package.ts @@ -675,7 +675,7 @@ export class TagsProcessor extends BaseProcessor { const debuggers = doesContribute('debuggers') ? ['debuggers'] : []; const json = doesContribute('jsonValidation') ? ['json'] : []; const remoteMenu = doesContribute('menus', 'statusBar/remoteIndicator') ? ['remote-menu'] : []; - const chatParticipants = doesContribute('chatParticipants') ? ['chat-participant'] : []; + const chatParticipants = doesContribute('chatParticipants') ? ['chat-participant', 'copilot'] : []; const localizationContributions = ((contributes && contributes['localizations']) ?? []).reduce( (r, l) => [...r, `lp-${l.languageId}`, ...toLanguagePackTags(l.translations, l.languageId)], @@ -1636,7 +1636,7 @@ async function collectAllFiles( cwd: string, dependencies: 'npm' | 'yarn' | 'none' | undefined, dependencyEntryPoints?: string[], - followSymlinks:boolean = true + followSymlinks: boolean = true ): Promise { const deps = await getDependencies(cwd, dependencies, dependencyEntryPoints); const promises = deps.map(dep => @@ -1670,7 +1670,7 @@ function collectFiles( ignoreFile?: string, manifestFileIncludes?: string[], readmePath?: string, - followSymlinks:boolean = false + followSymlinks: boolean = false ): Promise { readmePath = readmePath ?? 'README.md'; const notIgnored = ['!package.json', `!${readmePath}`]; 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', () => {