Skip to content

Commit f52b16a

Browse files
committed
remove destructive warning for the commands not in the list
1 parent 168a865 commit f52b16a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/codewhispererChat/tools/executeBash.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,13 @@ export class ExecuteBash {
200200
}
201201
const workspaceFolders = vscode.workspace.workspaceFolders
202202
if (!workspaceFolders || workspaceFolders.length === 0) {
203-
return { requiresAcceptance: true, warning: destructiveCommandWarningMessage }
203+
return { requiresAcceptance: true }
204204
}
205205
const isInWorkspace = workspaceFolders.some((folder) =>
206206
isInDirectory(folder.uri.fsPath, fullPath)
207207
)
208208
if (!isInWorkspace) {
209-
return { requiresAcceptance: true, warning: destructiveCommandWarningMessage }
209+
return { requiresAcceptance: true }
210210
}
211211
}
212212
}

0 commit comments

Comments
 (0)