texstudio 2.12.10
Windows 7 64-bit
The \section{} elements in the example below are not shown in the structure panel. I don't know if this was designed that way or not. If yes, I would prefer to show these elements by default.
Example:
\iftoggle{toggle}{%
\section{Test}
}{%
\section{Test}
}
This has been broken for some time, because it's not compatible with the parser anymore. The corresponding option has been removed.See also https://github.com/texstudio-org/texstudio/issues/324Last edit: Tim Hoffmann 2018-11-05
Works on master. There have been some changes to the parser, one of which possibly fixed this as a side-effect.