diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index af6478a6199e15ece663b1f8b68240a8276950b2..c157c37eb460bcf2db5b697e4ae1101686d43c36 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -27448,7 +27448,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(