Add extensions to the remote server (#20049)

TODO:

- [x] Double check strange PHP env detection
- [x] Clippy & etc.

Release Notes:

- Added support for extension languages on the remote server

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
Mikayla Maki
2024-11-20 19:21:09 -07:00
committed by GitHub
co-authored by Conrad Irwin
parent 0e62b6dddd
commit a03770837e
11 changed files with 606 additions and 4 deletions
@@ -4,6 +4,7 @@ use std::{path::PathBuf, sync::Arc, time::Duration};
use anyhow::{anyhow, Result};
use auto_update::AutoUpdater;
use editor::Editor;
use extension_host::ExtensionStore;
use futures::channel::oneshot;
use gpui::{
percentage, Animation, AnimationExt, AnyWindowHandle, AsyncAppContext, DismissEvent,
@@ -630,6 +631,15 @@ pub async fn open_ssh_project(
}
}
window
.update(cx, |workspace, cx| {
if let Some(client) = workspace.project().read(cx).ssh_client().clone() {
ExtensionStore::global(cx)
.update(cx, |store, cx| store.register_ssh_client(client, cx));
}
})
.ok();
break;
}