Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

editor: Fix to remove non-functional folding creases from the gutter (#49200)

ozacod87ff3eb62597
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 7450933bd17..3e41228e505 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -27496,7 +27496,7 @@ impl EditorSnapshot {
}
}
- is_foldable |= self.starts_indent(buffer_row);
+ is_foldable |= !self.use_lsp_folding_ranges && self.starts_indent(buffer_row);
if folded || (is_foldable && (row_contains_cursor || self.gutter_hovered)) {
Some(