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

Autocomplete in \ref{} is empty when using colon. #599

Closed WannabeSmith closed 2 years ago

WannabeSmith commented 2 years ago

OS/editor details:

OS: macOS Monterey 12.3.1 Editor: Emacs 28.1 LaTeX: TeX Live 2022 texlab version: 3.3.2

Description of the issue:

When referring to a section, the autocomplete breaks if I enter a colon ":".

It's a common convention to use colons in section/subsection/theorem/proposition/etc. labels. Thus, I might give my introduction the label \label{section:introduction}, but if I'd like to see an autocompleted list of all sections, it breaks as soon as I type the colon separating "section" and "introduction". This also means I cannot see all Theorems/Propositions at a glance. See the following screen capture.

https://user-images.githubusercontent.com/5490890/162868400-ce517788-bdd2-4e1a-a99d-e3fd0b4bed7a.mov

clason commented 2 years ago

I think this is an issue with Emacs; this is working fine on Neovim.

WannabeSmith commented 2 years ago

You're right, this doesn't seem to happen in VSCode either. Thanks!