Closed rnatella closed 2 months ago
This is a limit by vscode, unfortunately. Only when the viewer is loaded, the extension may start synctex-ing. However, when doing so, the extension needs to retrieve the cursor location in the file, which is invisible and cannot be obtained from any vscode API.
tldr: both viewer and text editor have to be visible to make it function correctly.
There might be a patch on a related issue, may or may not resolve this problem.
Thank you, I can test it once it is updated, in the meanwhile I will use the separate editor group.
About the separate editor group: when I open the PDF preview, the focus stays in the Latex file editor. Is there any option to change the focus to the PDF preview tab? That would allow me to quickly close the PDF preview tab using the keyboard.
afaik no as it’s a vscode limit. I will keep an eye on it though.
Ok, thanks!
Pre-checks*
Environment*
The Issue*
When compiling the project, I would like to automatically focus the PDF viewer. It works well when the tab viewer is configured to open in a new editor group (the default configuration). However, it does not work (i.e., no sync) when the tab viewer is configured to open in the current editor group.
Reproduction Steps
Expected Behavior
Logs
LaTeX Workshop Output*
Developer Tools Console
I am unable to find it :-(
Anything Else?