pgadmin-org / pgadmin4

pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.
https://www.pgadmin.org
Other
2.28k stars 613 forks source link

SQL editor nested blocks do not show collapse arrows #6118

Open Ugland opened 1 year ago

Ugland commented 1 year ago

I am stuck on an old version 4.28 because I actively use the small arrows next to line numbers in the SQL editor to hide blocks of code between keywords "BEGIN" and "END;". The problem in newer versions, up to 6.21, is that this feature does not work when a block is indented. Running on Windows 10.

Anyway, a great product!

adityatoshniwal commented 1 year ago

@Ugland I am using the latest version and I can see the arrow collapse button:

image
Ugland commented 1 year ago

@adityatoshniwal: Hi and thank you for responding! How does it look if you add a nested and indented BEGIN-END; to that? Are you on Windows? What version of pgAdmin?

HideButtons

adityatoshniwal commented 1 year ago

@Ugland, looks like it is not working as expected on nested blocks. I tried on 6.21 on Mac. I will rename the subject.

Ugland commented 1 year ago

@adityatoshniwal: Thanks. I believe I saw it working with nested blocks when thay are unindented but I need it to work with indented blocks too.