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:
parent
c887bf8e54
commit
9ee1db3552
1 changed files with 4 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue