Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix merge conflict (#11232)
Conrad Irwinb18ca1585e05
diff --git a/crates/assistant2/src/tools/create_buffer.rs b/crates/assistant2/src/tools/create_buffer.rsindex ddc66ba15ae..b2c6f7d8a90 100644--- a/crates/assistant2/src/tools/create_buffer.rs+++ b/crates/assistant2/src/tools/create_buffer.rs@@ -62,11 +62,14 @@ impl LanguageModelTool for CreateBufferTool {})?.await?;- let buffer = cx.update(|cx| {- project.update(cx, |project, cx| {- project.create_buffer(&text, Some(language), cx)- })- })??;+ let buffer = cx+ .update(|cx| project.update(cx, |project, cx| project.create_buffer(cx)))?+ .await?;++ buffer.update(&mut cx, |buffer, cx| {+ buffer.edit([(0..0, text)], None, cx);+ buffer.set_language(Some(language), cx)+ })?;workspace.update(&mut cx, |workspace, cx| {