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

This PR fixes an issue where the default prompt was not being inserted
into the prompt editor in Assistant2.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-01-21 22:01:34 -05:00 committed by GitHub
parent c887bf8e54
commit 9ee1db3552
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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() {