ssh remoting: Hide share button while connecting to project (#19885)

Co-Authored-by: Thorsten <thorsten@zed.dev>

Release Notes:

- N/A

Co-authored-by: Thorsten <thorsten@zed.dev>
This commit is contained in:
Bennet Bo Fenner 2024-10-29 12:13:21 +01:00 committed by GitHub
parent 84328c303b
commit 6a0bcca9ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 3 deletions

View file

@ -1,7 +1,7 @@
pub mod disconnected_overlay;
mod remote_servers;
mod ssh_connections;
pub use ssh_connections::open_ssh_project;
pub use ssh_connections::{is_connecting_over_ssh, open_ssh_project};
use disconnected_overlay::DisconnectedOverlay;
use fuzzy::{StringMatch, StringMatchCandidate};

View file

@ -689,6 +689,10 @@ impl SshClientDelegate {
}
}
pub fn is_connecting_over_ssh(workspace: &Workspace, cx: &AppContext) -> bool {
workspace.active_modal::<SshConnectionModal>(cx).is_some()
}
pub fn connect_over_ssh(
unique_identifier: String,
connection_options: SshConnectionOptions,