Reoganize remote client code to make room for non-ssh remote projects
Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
parent
84c243576f
commit
e0223add54
35 changed files with 1596 additions and 1579 deletions
|
@ -222,7 +222,7 @@ pub fn init(cx: &mut App) {
|
|||
|
||||
cx.observe_new(move |workspace: &mut Workspace, _, cx| {
|
||||
let project = workspace.project();
|
||||
if project.read(cx).is_local() || project.read(cx).is_via_ssh() {
|
||||
if project.read(cx).is_local() || project.read(cx).is_via_remote_server() {
|
||||
log_store.update(cx, |store, cx| {
|
||||
store.add_project(project, cx);
|
||||
});
|
||||
|
@ -231,7 +231,7 @@ pub fn init(cx: &mut App) {
|
|||
let log_store = log_store.clone();
|
||||
workspace.register_action(move |workspace, _: &OpenLanguageServerLogs, window, cx| {
|
||||
let project = workspace.project().read(cx);
|
||||
if project.is_local() || project.is_via_ssh() {
|
||||
if project.is_local() || project.is_via_remote_server() {
|
||||
let project = workspace.project().clone();
|
||||
let log_store = log_store.clone();
|
||||
get_or_create_tool(
|
||||
|
@ -321,7 +321,7 @@ impl LogStore {
|
|||
.retain(|_, state| state.kind.project() != Some(&weak_project));
|
||||
}),
|
||||
cx.subscribe(project, |this, project, event, cx| {
|
||||
let server_kind = if project.read(cx).is_via_ssh() {
|
||||
let server_kind = if project.read(cx).is_via_remote_server() {
|
||||
LanguageServerKind::Remote {
|
||||
project: project.downgrade(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue