diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 7450933bd17f7c248870f23f830ed6c633f36ac0..3e41228e505ed81cb2ec7572ec96bbc0edacc78c 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(