Skip to content

Commit a3090d9

Browse files
authored
Merge pull request #260577 from microsoft/tyriar/case
Fix case of always allow commands action
2 parents b8b82df + 961e883 commit a3090d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ export class RunInTerminalTool extends Disposable implements IToolImpl {
887887
subCommandTooltip = localize('autoApprove.baseCommandSingleTooltip', 'Always allow command starting with `{0}` to run without confirmation', subCommandsFirstWordOnly[0]);
888888
} else {
889889
const commandSeparated = subCommandsFirstWordOnly.join(', ');
890-
subCommandLabel = localize('autoApprove.baseCommand', 'Always allow commands: {0}', commandSeparated);
890+
subCommandLabel = localize('autoApprove.baseCommand', 'Always Allow Commands: {0}', commandSeparated);
891891
subCommandTooltip = localize('autoApprove.baseCommandTooltip', 'Always allow commands starting with `{0}` to run without confirmation', commandSeparated);
892892
}
893893
actions.push({

src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/runInTerminalTool.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ suite('RunInTerminalTool', () => {
367367
const customActions = result!.confirmationMessages!.terminalCustomActions!;
368368
strictEqual(customActions.length, 3, 'Expected 3 custom actions');
369369

370-
strictEqual(customActions[0].label, 'Always allow commands: npm, npm');
370+
strictEqual(customActions[0].label, 'Always Allow Commands: npm, npm');
371371
strictEqual(customActions[0].data.type, 'newRule');
372372

373373
strictEqual(customActions[1].label, 'Always Allow Full Command Line: npm install &&& npm run build');

0 commit comments

Comments
 (0)