Closed changlichun closed 4 months ago
I cannot reproduce the issue. Are you talking about the Outline view in the Explorer panel or about the Structure view in the TeX panel? In the Outline view in the Explorer panel, make to activate Follow Cursor in the three dots
I apologize for not being clear. I am talking about the structure view.
Can you post a screenshot describing what you consider as an issue because I am not sure to understand what the true problem is?
The current editing position should normally be spotlighted in the structure view, but this is not possible when the file contains only \subsubsection
Thanks for the screenshots and for spotting the role of the first sectioning level in the included file.
For self-note: this issue was caused by the previous file path tracing logic, which only inspects the immediately children's file path. The fix will inspect the paths for all children and children-of-children.
Pre-checks*
Environment*
The Issue*
Reproduction Steps
Expected Behavior
Logs
LaTeX Workshop Output*
Developer Tools Console
Anything Else?
\begin{document} \section[1]{sec 1} \lipsum[1-3]
\subsection{sub 1} \input{example-section}
\end{document}
% \subsection{sec 2} % behave correctly when contain the subsection level title \subsubsection[2]{subsub 2} \lipsum[4-6] \subsubsection[3]{subsub 3}