Support terminals with ssh in remote projects (#11913)
Release Notes: - Added a way to create terminal tabs in remote projects, if an ssh connection string is specified
This commit is contained in:
parent
70888cf3d6
commit
8631280baa
14 changed files with 239 additions and 68 deletions
|
@ -493,14 +493,6 @@ impl TerminalPanel {
|
|||
cx.spawn(|terminal_panel, mut cx| async move {
|
||||
let pane = terminal_panel.update(&mut cx, |this, _| this.pane.clone())?;
|
||||
workspace.update(&mut cx, |workspace, cx| {
|
||||
if workspace.project().read(cx).is_remote() {
|
||||
workspace.show_error(
|
||||
&anyhow::anyhow!("Cannot open terminals on remote projects (yet!)"),
|
||||
cx,
|
||||
);
|
||||
return;
|
||||
};
|
||||
|
||||
let working_directory = if let Some(working_directory) = working_directory {
|
||||
Some(working_directory)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue