From 87ff3eb62597cc658c765001d8bd084eb85f2065 Mon Sep 17 00:00:00 2001 From: ozacod <47009516+ozacod@users.noreply.github.com> Date: Sun, 15 Feb 2026 12:33:03 +0300 Subject: [PATCH] editor: Fix to remove non-functional folding creases from the gutter (#49200) Lsp-based folding disables indentation-based folding. Even though indentation-based folding is non-functional, the crease icon is still displayed in the gutter. This PR fixes this mismatch. Before: before After: after Before you mark this PR as ready for review, make sure that you have: - [x] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - Removed non-functional folding creases from the gutter. Co-authored-by: ozacod --- crates/editor/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(