From 4b4565fb7afaa7ab2c8d2058c924120fda911311 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Wed, 25 Sep 2024 22:55:36 +0200 Subject: [PATCH] assistant: Enable assistant panel/inline assists in ssh remote projects (#18367) Release Notes: - ssh remoting: Enable assistant panel and inline assists (running on client) --- crates/assistant/src/assistant_panel.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs index 22237eeb079270e51afc9a08d33cf1d167140fb5..c7a06b428b9f1a499c16c6ba879f87ef29ee0ecc 100644 --- a/crates/assistant/src/assistant_panel.rs +++ b/crates/assistant/src/assistant_panel.rs @@ -960,7 +960,8 @@ impl AssistantPanel { } fn new_context(&mut self, cx: &mut ViewContext) -> Option> { - 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));