mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-04 12:13:21 +01:00
Revert "Allow always_allow patterns for Nushell, Elvish, and Rc shells" (#48050)
Reverts zed-industries/zed#47908 This PR inadvertently caused a regression: - https://github.com/zed-industries/zed/issues/48047
This commit is contained in:
1 parent
cfd6144af8
commit
72b151e3aa
28 files changed
+318
-694
No files matched your search
@@ -28,11 +28,7 @@ use ui::{
|
||||
prelude::*,
|
||||
};
|
||||
use ui_input::InputField;
|
||||
use util::{
|
||||
ResultExt, debug_panic,
|
||||
rel_path::RelPath,
|
||||
shell::{PosixShell, ShellKind},
|
||||
};
|
||||
use util::{ResultExt, debug_panic, rel_path::RelPath, shell::ShellKind};
|
||||
use workspace::{ModalView, Workspace, notifications::DetachAndPromptErr, pane};
|
||||
|
||||
use crate::{
|
||||
@@ -874,8 +870,7 @@ impl ConfigureMode {
|
||||
};
|
||||
}
|
||||
let command = self.program.read(cx).text(cx);
|
||||
// TODO: Consider using the user's actual shell instead of hardcoding "sh"
|
||||
let mut args = ShellKind::Posix(PosixShell::Sh)
|
||||
let mut args = ShellKind::Posix
|
||||
.split(&command)
|
||||
.into_iter()
|
||||
.flatten()
|
||||
@@ -1303,8 +1298,7 @@ impl PickerDelegate for DebugDelegate {
|
||||
})
|
||||
.unwrap_or_default();
|
||||
|
||||
// TODO: Consider using the user's actual shell instead of hardcoding "sh"
|
||||
let mut args = ShellKind::Posix(PosixShell::Sh)
|
||||
let mut args = ShellKind::Posix
|
||||
.split(&text)
|
||||
.into_iter()
|
||||
.flatten()
|
||||
|
||||
@@ -971,6 +971,7 @@ impl RunningState {
|
||||
let task_store = project.read(cx).task_store().downgrade();
|
||||
let weak_project = project.downgrade();
|
||||
let weak_workspace = workspace.downgrade();
|
||||
let is_windows = project.read(cx).path_style(cx).is_windows();
|
||||
let remote_shell = project
|
||||
.read(cx)
|
||||
.remote_client()
|
||||
@@ -1088,7 +1089,7 @@ impl RunningState {
|
||||
task.resolved.shell = Shell::Program(remote_shell);
|
||||
}
|
||||
|
||||
let builder = ShellBuilder::new(&task.resolved.shell);
|
||||
let builder = ShellBuilder::new(&task.resolved.shell, is_windows);
|
||||
let command_label = builder.command_label(task.resolved.command.as_deref().unwrap_or(""));
|
||||
let (command, args) =
|
||||
builder.build(task.resolved.command.clone(), &task.resolved.args);
|
||||
|
||||
Reference in new issue
Block a user