Skip to content

Commit d0a3f4c

Browse files
committed
Improve messages
1 parent d5570b7 commit d0a3f4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class CommandLineAutoApprover extends Disposable {
5353
// TODO: LLM-based auto-approval https://github.com/microsoft/vscode/issues/253267
5454

5555
// Fallback is always to require approval
56-
return { isAutoApproved: false, reason: `Command '${command}' requires explicit approval (no matching allow list rule found)` };
56+
return { isAutoApproved: false, reason: `Command '${command}' has no matching auto approve entries` };
5757
}
5858

5959
isCommandLineAutoApproved(commandLine: string): { isAutoApproved: boolean; reason: string } {
@@ -70,7 +70,7 @@ export class CommandLineAutoApprover extends Disposable {
7070
return { isAutoApproved: true, reason: `Command line '${commandLine}' is approved by allow list rule: ${regex.source}` };
7171
}
7272
}
73-
return { isAutoApproved: false, reason: `Command line '${commandLine}' requires explicit approval (no matching allow list rule found)` };
73+
return { isAutoApproved: false, reason: `Command line '${commandLine}' has no matching auto approve entries` };
7474
}
7575

7676
private _commandMatchesRegex(regex: RegExp, command: string, shell: string, os: OperatingSystem): boolean {

0 commit comments

Comments
 (0)