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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user