Skip to content

Possible performance regression in 4.2.0 when using autocompletion with environments #2063

@adelon

Description

@adelon

Environment

  • TeXstudio 4.2.0
  • Qt Version 6.2.2 (also tested with the Qt Version 5.15.2)
  • macOS Catalina 10.15.7
  • TeX 3.14159265 (TeX Live 2020)

Issue

I recently updated from 3.1.2 to 4.2.0 and I think I'm encountering a small performance regression. When using autocompletion for environments, initially only the first occurrence of the environment name is selected, unless I pause my typing for over 1 second. Previous versions (3.1.2, 4.0.0, 4.1.0, and 4.1.2) do not exhibit the issue.

Example and additional details

I'd expect the input sequence \beg<ENTER>theorem (regardless of typing speed) to result in

\begin{theorem}
    content...
\end{theorem}

but when typed without interruption it results in

\begin{theorem}
    content...
\end{*environment-name*}

instead. Also, if I wait only a bit longer after <ENTER>, the second occurrence of *environment-name* becomes visually highlighted, but is still not selected properly and continuing to type only results in the first occurrence of *environment-name* being replaced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions