Texlab reports both in (1) and (2) that the label #1 is unused and dublicate.
Expected Behaviours
Texlab should either
ignore \label and alike commands in macro definition
if the parametre (#1, ...) is passed directly to the \label (or with a little concatenate) in the bulk of the definition of the newcommand, newly defined command shall be considered as a new `label' and can be recognised by the texlab's label-ref analysis system (not sure if I have used the right words for it...)
Maybe related links
1093
Version info
texlab 5.12.4
Confermed both in VS Code with texlab extension and Vim with coc-texlab
Issue
Consider defining some macros in the preamble:
Texlab reports both in (1) and (2) that the label
#1
is unused and dublicate.Expected Behaviours
Texlab should either
\label
and alike commands in macro definition#1
, ...) is passed directly to the\label
(or with a little concatenate) in the bulk of the definition of the newcommand, newly defined command shall be considered as a new `label' and can be recognised by the texlab's label-ref analysis system (not sure if I have used the right words for it...)Maybe related links
1093
Version info
Confermed both in VS Code with texlab extension and Vim with coc-texlab