Show dev server in the titlebar for remote projects (#11276)

Co-Authored-By: Mikayla <mikayla@zed.dev>

Release Notes:

- Show server name in the titlebar for remote projects

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Conrad Irwin 2024-05-01 16:24:58 -06:00 committed by GitHub
parent 74f8ef0364
commit eb0f1e71f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 53 additions and 5 deletions

View file

@ -11,7 +11,7 @@ use picker::{
highlighted_match_with_paths::{HighlightedMatchWithPaths, HighlightedText},
Picker, PickerDelegate,
};
use remote_projects::RemoteProjects;
pub use remote_projects::RemoteProjects;
use rpc::proto::DevServerStatus;
use serde::Deserialize;
use std::{

View file

@ -60,6 +60,12 @@ impl RemoteProjects {
.detach();
}
pub fn open(workspace: View<Workspace>, cx: &mut WindowContext) {
workspace.update(cx, |workspace, cx| {
workspace.toggle_modal(cx, |cx| Self::new(cx))
})
}
pub fn new(cx: &mut ViewContext<Self>) -> Self {
let remote_project_path_input = cx.new_view(|cx| TextField::new(cx, "", "Project path"));
let dev_server_name_input =