Closed AVAtarMod closed 1 year ago
Will look into it later.
This is because the line range of sections is wrong.
Once the sections are properly nested in https://github.com/James-Yu/LaTeX-Workshop/blob/fe888d7c54d8db5cbda4671995d10f3d0b6a7f85/src/providers/structurelib/latex.ts#L30-L52, the ranges of every section must be recomputed. Prior to #3879, this was done by https://github.com/James-Yu/LaTeX-Workshop/blob/18bd1b4e66ce1c1e4a237c7bc73cebbf321f3b86/src/providers/structurelib/latex.ts#L520-L539
I may try to resurrect this function in the coming days.
Pre-checks*
Environment*
Operating System: Linux (Fedora Linux 38 Workstation Edition)
Visual Studio Code Version: 1.77.3
LaTeX Workshop Version: 9.13.4
TeX Distribution Version: TeX Live 2022-03-21
I am using VSCodium whose version is 1.77.3
The Issue*
If position of the text editor's cursor outside
chapter
,section
and other structure commands, breadcrumbs structure bar shows...
instead of chapter. See screenshot below (in this MWE I used onlysection
, but on more complex structure withchapter
,subsection
,subsubsection
and others I see same behavior) :On screenshot cursor placed on 6 line, in the breadcrumbs after test.tex > we can see three dot (
...
)Reproduction Steps
Expected Behavior
Current structure object name same as when cursor position on it structure command. On screenshot cursor position on section command, and breadcrumbs show have correct content:
Logs
LaTeX Workshop Output*
Developer Tools Console
Anything Else?
Related issues: #2961 Related PRs: #2967