Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

assistant: Only insert the host's default prompt when creating a new context (#15650)

Marshall Bowers0799dfb2b831
diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs
index 06acbe626c4..c54a818206f 100644
--- a/crates/assistant/src/assistant_panel.rs
+++ b/crates/assistant/src/assistant_panel.rs
@@ -795,7 +795,7 @@ impl AssistantPanel {
let weak_assistant_panel = cx.view().downgrade();
let editor = cx.new_view(|cx| {
- let mut editor = ContextEditor::for_context(
+ ContextEditor::for_context(
context,
fs,
workspace,
@@ -803,9 +803,7 @@ impl AssistantPanel {
lsp_adapter_delegate,
weak_assistant_panel,
cx,
- );
- editor.insert_default_prompt(cx);
- editor
+ )
});
this.show_context(editor, cx);