vscode-pdfviewer icon indicating copy to clipboard operation
vscode-pdfviewer copied to clipboard

Reload debouncing

Open phiresky opened this issue 3 years ago • 0 comments

When compiling a LaTeX document, it will be rewritten multiple times. Currently, this causes vscode-pdf to completely lose the position the PDF viewer was at since it tries to reload the PDF before it is fully rewritten, and sometimes also causes it to show an "invalid PDF" error message instead.

It would be great if there was an option (or default) of adding a debounce to the reload function: Then it will only reload the document if it remains unchanged for e.g. 2 seconds.

phiresky avatar Jul 12 '21 18:07 phiresky