Hi Mas, Please check - https://github.com/pgadmin-org/pgadmin4/issues/9160
On Thu, Oct 2, 2025 at 1:38 AM 'Mas Kinato' via pgAdmin Security < [email protected]> wrote: > Dear pgAdmin Support Team, > > I am reaching out regarding an issue we are encountering with code folding > in pgAdmin 4 (version 9.8). > > Issue Summary: > • Code folding is enabled under Preferences → Query Tool → Editor (the > “Code folding” option is toggled on). > • However, fold carets/triangles are not appearing for foldable regions > (e.g., WITH (…) CTEs or VALUES (…) blocks). > • We only see the caret when wrapping a block in BEGIN…END;, but that > makes the query invalid in SQL execution. > • Additionally, the “Line numbers” option (expected under Preferences → > Query Tool → Display) is missing entirely in this version of pgAdmin 4, > which prevents us from exposing the gutter where fold carets normally > appear. > > Steps Taken So Far: > > 1. Verified that Code folding is enabled. > 2. Tried different themes (Default, Light, Dark) to check if the caret > was hidden due to UI visibility. > 3. Restarted Query Tool after preferences changes. > 4. Tested simple foldable examples (e.g., WITH test AS (VALUES (1), > (2), (3)) SELECT * FROM test;) — no fold caret appeared. > 5. Confirmed with multiple users that the Line numbers preference is > not visible in our pgAdmin 4 v9.8 builds. > > Environment: > • pgAdmin 4 v9.8 > • Affected across multiple installations > • OS: [insert OS details if you want to include, e.g., Windows 11 / macOS > Sonoma] > > Request: > Could you please confirm: > > 1. Whether the Line numbers option has been relocated or removed in > pgAdmin 4 v9.8? > 2. If this is a known regression/bug affecting code folding in CTEs > and parentheses blocks. > 3. Recommended steps or patches to restore proper code folding > (without relying on BEGIN…END;). > > We rely on folding for large SQL queries, and currently this limitation > makes navigation difficult. If this requires escalation, I’d be grateful if > you could provide guidance or log it as a support issue with the pgAdmin > development team. > > Thank you for your assistance. > > Best regards, > Mas > -- Thanks, Aditya Toshniwal pgAdmin Hacker | Sr. Staff SDE II | *enterprisedb.com* <https://www.enterprisedb.com/> "Don't Complain about Heat, Plant a TREE"
