If a # statement is in the code section the fold section does not work properly

Hi team,

When you try to fold this type of code collapsing stops when # statements start.
image

Here is the result
image

PS. Is it possible to make the #region section collapsible?

Thanks

Hi @koksal.basar,

This is a feature of the monaco editor which Radzen Blazor Studio uses and we don't have control over it.

I am afraid not.

Hello @korchev,

I've dug Monaco a little. The folding mechanism is not working only with the keywords, it needs to be indented also. Indeed this issue is about indenting.

When I changed the indents manually everything worked seamlessly as follows. So both issues are working on RBS if the indents are true.

My original code after manual indenting.

.
Folding inner to outer...

image

image