Skip to content

Compilation causes cursor to disappear from text editorΒ #294

@cyqian97

Description

@cyqian97

Describe the bug

When editing a .tex file with the Overleaf VS Code extension, the compilation feature causes the text editor to lose focus. Specifically:

  1. While typing in the .tex file, if a compilation is triggered, the cursor disappears from the text editor.
  2. After that, typing does not insert any text into the file.
  3. To continue editing, I have to manually click back into the .tex file tab to restore focus.

This behavior did not occur about a month ago.

Expected behavior

The cursor should remain in the text editor during and after a compilation, allowing uninterrupted editing.

How To Reproduce

  1. Open a .tex file in an Overleaf project from the Overleaf Workshop Extension.
  2. Click on a View Compiled PDF at the top-right corner of the text editor tab.
  3. Trigger a compilation manually using Ctrl+Alt+B or wait for an auto-compilation.
  4. Observe that the cursor disappears and typing no longer edits the file until focus is restored manually.

Environment

  • Overleaf Workshop Extension version: 0.15.5
  • VS Code version: 1.103.2
  • Overleaf Edition: Official

Work around

The following operation solves the problem: Drag the PDF tab out of the VS Code window to make it a separate window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions