提交 7ee9a7af 编写于 作者: D Daniel Imms

Always allow workspace shellArgs []

Fixes #51645
上级 fa7ded2f
......@@ -169,6 +169,11 @@ export class TerminalConfigHelper implements ITerminalConfigHelper {
isWorkspaceShellAllowed = this._storageService.getBoolean(IS_WORKSPACE_SHELL_ALLOWED_STORAGE_KEY, StorageScope.WORKSPACE, undefined);
}
// Always allow [] args as it would lead to an odd error message and should not be dangerous
if (shellConfigValue.workspace === undefined && shellArgsConfigValue.workspace.length === 0) {
isWorkspaceShellAllowed = true;
}
// Check if the value is neither blacklisted (false) or whitelisted (true) and ask for
// permission
if (isWorkspaceShellAllowed === undefined) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册