Closed tobiasdiez closed 4 months ago
The minimap now recognizes and renders sections defined by folding markers, such as //#region in TypeScript, or comments that use MARK:. This lets you quickly scan and navigate across large files.
It’s a vscode side feature request.
As the code shows https://github.com/microsoft/vscode/pull/190759/files#diff-65a0218d42adca167f6ca9accf9a2dfc46c2fe84d3e1cbe0269202af243c92d0R62 all regions matched by the language services foldingRules
are taken into account, i.e. by LanguageConfigurationService.getLanguageConfiguration(languageId).foldingRules
. There is also nothing specific to TS's #region
in this PR as far as I can see, hence my hope that you can also make it work for Latex. How is the folding handled in this extension?
Pre-checks*
Environment*
The Issue*
VS code recently added section headers to the minimap, see https://code.visualstudio.com/updates/v1_88#_minimap-section-headers. This is however not working for the folding markers added by this extension for
\section
commands.Reproduction Steps
Have a document with
\section{Test}
and look at the minimap.Expected Behavior
The section name should appear in the minimap.
Logs
LaTeX Workshop Output*
Developer Tools Console
Anything Else?