Skip to content

Commit 3c1b697

Browse files
authored
Merge pull request #1124 from microsoft/isidorn/inc-cricket
Add 'copilot-tools' to languageModelTools contributions
2 parents 7fd6c3e + e7919ac commit 3c1b697

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ export class TagsProcessor extends BaseProcessor {
682682
const json = doesContribute('jsonValidation') ? ['json'] : [];
683683
const remoteMenu = doesContribute('menus', 'statusBar/remoteIndicator') ? ['remote-menu'] : [];
684684
const chatParticipants = doesContribute('chatParticipants') ? ['chat-participant'] : [];
685-
const languageModelTools = doesContribute('languageModelTools') ? ['tools'] : [];
685+
const languageModelTools = doesContribute('languageModelTools') ? ['tools', 'language-model-tools'] : [];
686686

687687
const localizationContributions = ((contributes && contributes['localizations']) ?? []).reduce<string[]>(
688688
(r, l) => [...r, `lp-${l.languageId}`, ...toLanguagePackTags(l.translations, l.languageId)],

src/test/package.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ describe('toVsixManifest', () => {
13491349
.then(result => assert.deepEqual(result.PackageManifest.Metadata[0].Tags[0], 'chat-participant,__web_extension'));
13501350
});
13511351

1352-
it('should automatically add tools tag', () => {
1352+
it('should automatically add languageModelTools tag', () => {
13531353
const manifest = {
13541354
name: 'test',
13551355
publisher: 'mocha',
@@ -1362,7 +1362,7 @@ describe('toVsixManifest', () => {
13621362

13631363
return _toVsixManifest(manifest, [])
13641364
.then(parseXmlManifest)
1365-
.then(result => assert.deepEqual(result.PackageManifest.Metadata[0].Tags[0], 'tools,__web_extension'));
1365+
.then(result => assert.deepEqual(result.PackageManifest.Metadata[0].Tags[0], 'tools,language-model-tools,__web_extension'));
13661366
});
13671367

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

0 commit comments

Comments
 (0)