Fix merge conflict (#11232)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-04-30 16:26:10 -06:00 committed by GitHub
parent 93fbca4242
commit b18ca1585e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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