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:
parent
74f8ef0364
commit
eb0f1e71f7
6 changed files with 53 additions and 5 deletions
|
@ -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::{
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue