assistant: Enable assistant panel/inline assists in ssh remote projects (#18367)

Release Notes:

- ssh remoting: Enable assistant panel and inline assists (running on
client)
This commit is contained in:
Piotr Osiewicz 2024-09-25 22:55:36 +02:00 committed by GitHub
parent 21a023980d
commit 4b4565fb7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -960,7 +960,8 @@ impl AssistantPanel {
}
fn new_context(&mut self, cx: &mut ViewContext<Self>) -> Option<View<ContextEditor>> {
if self.project.read(cx).is_via_collab() {
let project = self.project.read(cx);
if project.is_via_collab() && project.dev_server_project_id().is_none() {
let task = self
.context_store
.update(cx, |store, cx| store.create_remote_context(cx));