Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix panic in crease folding (#51531)
Conrad Irwinb7266ba31444
diff --git a/crates/project/src/lsp_command.rs b/crates/project/src/lsp_command.rsindex 67edd6c13ca..ebc5ea038e0 100644--- a/crates/project/src/lsp_command.rs+++ b/crates/project/src/lsp_command.rs@@ -4857,9 +4857,14 @@ impl LspCommand for GetFoldingRanges {self,message: proto::GetFoldingRangesResponse,_: Entity<LspStore>,- _: Entity<Buffer>,- _: AsyncApp,+ buffer: Entity<Buffer>,+ mut cx: AsyncApp,) -> Result<Self::Response> {+ buffer+ .update(&mut cx, |buffer, _| {+ buffer.wait_for_version(deserialize_version(&message.version))+ })+ .await?;message.ranges.into_iter()