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.

assistant2: Insert default prompt into prompt editor (#23443)

Marshall Bowers9ee1db355239
diff --git a/crates/assistant2/src/assistant_panel.rs b/crates/assistant2/src/assistant_panel.rs
index 3715280ac1d..c90056bd086 100644
--- a/crates/assistant2/src/assistant_panel.rs
+++ b/crates/assistant2/src/assistant_panel.rs
@@ -251,14 +251,16 @@ impl AssistantPanel {
.flatten();
self.context_editor = Some(cx.new_view(|cx| {
- ContextEditor::for_context(
+ let mut editor = ContextEditor::for_context(
context,
self.fs.clone(),
self.workspace.clone(),
self.project.clone(),
lsp_adapter_delegate,
cx,
- )
+ );
+ editor.insert_default_prompt(cx);
+ editor
}));
if let Some(context_editor) = self.context_editor.as_ref() {