Skip to content

Commit 9c4c38e

Browse files
committed
Remove truncated preview from full command line option
Fixes microsoft#261648
1 parent 48aa70f commit 9c4c38e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,8 @@ export function generateAutoApproveActions(commandLine: string, subCommands: str
9999
// word
100100
const firstSubcommandFirstWord = unapprovedSubCommands.length > 0 ? unapprovedSubCommands[0].split(' ')[0] : '';
101101
if (firstSubcommandFirstWord !== commandLine) {
102-
const truncatedCommandLine = commandLine.length > 40 ? commandLine.substring(0, 40) + '\u2026' : commandLine;
103102
actions.push({
104-
// Add an extra & since it's treated as a mnemonic
105-
label: localize('autoApprove.exactCommand', 'Always Allow Exact Command Line: {0}', truncatedCommandLine.replaceAll('&&', '&&&')),
103+
label: localize('autoApprove.exactCommand', 'Always Allow Exact Command Line'),
106104
data: {
107105
type: 'newRule',
108106
rule: {

0 commit comments

Comments
 (0)