Skip to content

Commit bd39897

Browse files
committed
Fix comma splice and improve package install confirmation message
1 parent ead21ee commit bd39897

File tree

1 file changed

+3
-1
lines changed
  • extensions/positron-assistant/src

1 file changed

+3
-1
lines changed

extensions/positron-assistant/src/tools.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ export function registerAssistantTools(
296296
language: 'text', // Not actually a bash command
297297
confirmationMessages: {
298298
title: vscode.l10n.t('Install Python Packages'),
299-
message: vscode.l10n.t('Positron Assistant wants to install {0}, is this okay?', packageNames)
299+
message: options.input.packages.length === 1
300+
? vscode.l10n.t('Positron Assistant wants to install the package {0}. Is this okay?', packageNames)
301+
: vscode.l10n.t('Positron Assistant wants to install the following packages: {0}. Is this okay?', packageNames)
300302
},
301303
};
302304
return result;

0 commit comments

Comments
 (0)