latex-lsp / texlab

An implementation of the Language Server Protocol for LaTeX
GNU General Public License v3.0
1.55k stars 53 forks source link

\ref{} completion doesn't work when a line starting with unicode character #428

Closed wrvsrx closed 3 years ago

wrvsrx commented 3 years ago

After defining a label a, and type \ref{} in vscode, texlab should pop up a completion window with the label a in it (see the figure below).

image

However, after typing \ref{} in a line starting with three or more unicode characters, the completion window doesn't appear (see the figure below) image

It seems that this happens after upgrading to 3.0.0.

clason commented 3 years ago

Can confirm with standalone texlab (using neovim); even a single non-ASCII char is enough to throw off the completion: try typing

ö\ref{

and you get completion suggestions based on the re part! (Adding more ö "shifts" everything further until you get no completion anymore.)

clason commented 3 years ago

This looks fixed (for me) with https://github.com/latex-lsp/texlab/commit/e64a494e838e0d4926171eaf3ec24416850f9177

wrvsrx commented 3 years ago

It has been fixed in release v3.0.1. Thank you, developers.