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:
parent
0e62b6dddd
commit
a03770837e
11 changed files with 606 additions and 4 deletions
|
@ -17,6 +17,7 @@ anyhow.workspace = true
|
|||
auto_update.workspace = true
|
||||
release_channel.workspace = true
|
||||
editor.workspace = true
|
||||
extension_host.workspace = true
|
||||
file_finder.workspace = true
|
||||
futures.workspace = true
|
||||
fuzzy.workspace = true
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue