You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.ts
modelDescription: localize('installExtensionsTool.modelDescription',"This is a tool for installing extensions in Visual Studio Code. You should provide the list of extension ids to install, and the confirmation message that is shown to the user. The identifier of an extension is '\${ publisher }.\${ name }' for example: 'vscode.csharp'."),
20
+
modelDescription: localize('installExtensionsTool.modelDescription',"This is a tool for installing extensions in Visual Studio Code. You should provide the list of extension ids to install. The identifier of an extension is '\${ publisher }.\${ name }' for example: 'vscode.csharp'."),
20
21
userDescription: localize('installExtensionsTool.userDescription','Tool for installing extensions'),
description: 'The ids of the extensions to search for. The identifier of an extension is \'\${ publisher }.\${ name }\' for example: \'vscode.csharp\'.',
31
32
},
32
-
confirmation: {
33
-
type: 'object',
34
-
description: 'Defines the confirmation dialog shown to the user. This appears after displaying the list of extensions with their install buttons. The title and message should explain the purpose of the suggested extensions and guide the user to press the Install button on each extension they wish to install. The message should clearly instruct the user to click the Continue button after they have finished installing their chosen extensions to proceed. Extensions are not installed automatically - the user must explicitly install them.',
35
-
properties: {
36
-
title: {
37
-
type: 'string',
38
-
description: 'The title to display to the user.',
39
-
},
40
-
message: {
41
-
type: 'string',
42
-
description: 'The message to display to the user.',
message: parameters.confirmation?.message??localize('installExtensionsTool.confirmationMessage','These extensions are recommeded for you by Copilot.'),
message: newMarkdownString(localize('installExtensionsTool.confirmationMessage',"Review the suggested extensions and click the **Install** button for each extension you wish to add. Once you have finished installing the selected extensions, click **Continue** to proceed.")),
69
52
},
70
53
toolSpecificData: {
71
54
kind: 'extensions',
@@ -80,7 +63,7 @@ export class InstallExtensionsTool implements IToolImpl {
80
63
return{
81
64
content: [{
82
65
kind: 'text',
83
-
value: localize('installExtensionsTool.resultMessage','Following extensions are installed: {0}',installed.map(e=>e.identifier.id).join(', ')),
66
+
value: installed.length ? localize('installExtensionsTool.resultMessage','Following extensions are installed: {0}',installed.map(e=>e.identifier.id).join(', ')) : localize('installExtensionsTool.noResultMessage','No extensions were installed.'),
0 commit comments