Overleaf-Workshop icon indicating copy to clipboard operation
Overleaf-Workshop copied to clipboard

Extremely laggy on newlines

Open maximilianmordig opened this issue 7 months ago • 3 comments

Describe the bug

When writing a report, adding newlines (via Enter key) is extremely laggy quite often (every 2 minutes or so), lagging for 5-10s. Everything else (like moving around with the arrow keys) is not laggy. I tried different networks and it is consistently laggy. I have GitHub Copilot for VSCode installed.

Current workaround is to add a lot of newlines in the beginning and navigate between lines using the arrow key.

Expected behavior

It should not lag.

How To Reproduce

Edit a tex file in VSCode with the extension.

Environment

  • Overleaf Workshop Extension version: 0.15.4
  • VS Code version: Version: 1.99.3, Commit: 17baf841131aa23349f217ca7c570c76ee87b957
  • Overleaf Edition: Official / Community / Enterprise (Server Pro) Official

[Optional] Developer Logs

If applicable, please paste the logs inside the details section below. Please find the logs via: Title bar "Help" > "Toggle Developer Tools" > "Console".

...

maximilianmordig avatar May 10 '25 12:05 maximilianmordig

Cannot reproduce the situation. Please let us know more details.

  1. Are you using overleaf.com, or other self hosted overleaf server?
  2. How large is the file being editing? Will the lag exist on empty file?
  3. Have you tried disable other related extensions? (maybe with (vscode extension bisect](https://code.visualstudio.com/blogs/2021/02/16/extension-bisect))

iamhyc avatar May 10 '25 14:05 iamhyc

I also have this problem, using overleaf.com. It looks like it happens when the extension fails to connect to the server (I cannot save the document, and the file explorer displays the "loading" progress bar". After some time (about 2 minutes), I get a notification saying the connection was lost, which allows my newlines to appear and my file to be saved, because the extension reconnects quickly

pierrebrd avatar May 11 '25 16:05 pierrebrd

The public overleaf.com (pro version). The file has 800 lines. I solved it for now by splitting it into subfiles and editing those instead which is fast.

maximilianmordig avatar May 12 '25 08:05 maximilianmordig