James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.64k stars 532 forks source link

`\DeclarePairedDelimiter` and `\DeclarePairedDelimiterX` don't get IntelliSense after most recent update #3948

Closed MartinRJDagleish closed 1 year ago

MartinRJDagleish commented 1 year ago

Please fill the following fields with a star (*) and provide as much related information as possible.

Pre-checks*

Please change the following [ ] to [x] for confirmation.

  • [X] The issue has not been reported in this repository.
  • [X] The issue remains after disabling all other extensions and restarting Visual Studio Code.
  • [X] The FAQ cannot address the issue.
  • [X] The issue is not related to compiling a document, or the document can be successfully compiled in the OS terminal but not in Visual Studio Code with this extension.

Environment*

Please write exact version numbers instead of descriptors such as latest.

  • Operating System: Windows10 AND Manjaro Linux (Gnome)
  • Visual Studio Code Version: 1.79.2
  • LaTeX Workshop Version: 9.12.2
  • TeX Distribution Version: TeX Live 2022

The Issue*

Please briefly describe the issue you come across.

  • The IntelliSense for DeclarePairedDelimiter and DeclarePairedDelimiterX do not seem to work anymore after recent update with unified-latex.

Example code, which does not seems to get IntelliSense:

\DeclarePairedDelimiter\bra{\langle}{\rvert}
\DeclarePairedDelimiter\ket{\lvert}{\rangle}
\DeclarePairedDelimiterX\braketzw[2]{\langle}{\rangle}%
{#1\,\delimsize\vert\,\mathopen{}#2}
\DeclarePairedDelimiterX\braketdr[3]{\langle}{\rangle}%
{#1\,\delimsize\vert\,\mathopen{}#2\,\delimsize\vert\,\mathopen{}#3}

\braketdr{}{}{} % ← need to type manually

First I thought that it was not working, because I have separate files for settings / macros and for writing my actual document, but neither seem to work.

Reproduction Steps

Please list out the steps to reproduce your bug. Include relevant environmental variables or any other configuration.

  1. Create a DeclarePairedDelimiter macro in LaTeX
  2. Try typing and wait for IntelliSense
  3. Not autocomplete help

Expected Behavior

What were you expecting to see? Include any relevant examples or documentation links.

  • Cmd should show up for autocomplete, but does not
MartinRJDagleish commented 1 year ago

Sry I have to reopen this issue, as the problem still does not seem to be fixed.

I am using

So I just updated to the newest version of the extension.

Two commands still do NOT seem to provide IntelliSense:

\DeclarePairedDelimiterX as before, but also \DeclareRobustCommand seems to be broken now as well.