SSH remote ui (#15129)
Still TODO: * [x] hide this UI unless you have some ssh projects in settings * [x] add the "open folder" flow with the new open picker * [ ] integrate with recent projects / workspace restoration Release Notes: - N/A
This commit is contained in:
parent
be86852f95
commit
3e31955b7f
23 changed files with 1162 additions and 436 deletions
|
@ -1,5 +1,8 @@
|
|||
mod dev_servers;
|
||||
pub mod disconnected_overlay;
|
||||
mod ssh_connections;
|
||||
mod ssh_remotes;
|
||||
pub use ssh_connections::open_ssh_project;
|
||||
|
||||
use client::{DevServerProjectId, ProjectId};
|
||||
use dev_servers::reconnect_to_dev_server_project;
|
||||
|
@ -17,6 +20,8 @@ use picker::{
|
|||
};
|
||||
use rpc::proto::DevServerStatus;
|
||||
use serde::Deserialize;
|
||||
use settings::Settings;
|
||||
use ssh_connections::SshSettings;
|
||||
use std::{
|
||||
path::{Path, PathBuf},
|
||||
sync::Arc,
|
||||
|
@ -44,6 +49,7 @@ gpui::impl_actions!(projects, [OpenRecent]);
|
|||
gpui::actions!(projects, [OpenRemote]);
|
||||
|
||||
pub fn init(cx: &mut AppContext) {
|
||||
SshSettings::register(cx);
|
||||
cx.observe_new_views(RecentProjects::register).detach();
|
||||
cx.observe_new_views(DevServerProjects::register).detach();
|
||||
cx.observe_new_views(DisconnectedOverlay::register).detach();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue