mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-17 01:13:32 +01:00
Show allow-list actions for unsandboxed terminal confirmations (#303660)
* Handle unsandboxed terminal confirmation actions * test: fix unsandboxed terminal confirmation actions * Fixing confirmation window issues outside sandbox
This commit is contained in:
+1
-1
@@ -753,7 +753,7 @@ export class RunInTerminalTool extends Disposable implements IToolImpl {
|
||||
}
|
||||
|
||||
// If forceConfirmationReason is set, always show confirmation regardless of auto-approval
|
||||
const shouldShowConfirmation = requiresUnsandboxConfirmation || (!isFinalAutoApproved && !isSessionAutoApproved) || context.forceConfirmationReason !== undefined;
|
||||
const shouldShowConfirmation = (!isFinalAutoApproved && !isSessionAutoApproved) || context.forceConfirmationReason !== undefined;
|
||||
const confirmationMessage = requiresUnsandboxConfirmation
|
||||
? new MarkdownString(localize(
|
||||
'runInTerminal.unsandboxed.confirmationMessage',
|
||||
|
||||
Reference in New Issue
Block a user