message: Skip newcommand nodes when looking for labels
diff: @@ -37,6 +37,7 @@ export class Reference implements IProvider {
  private readonly suggestions = new Map<string, ReferenceEntry>()
  private prevIndexObj = new Map<string, {refNumber: string, pageNumber: string}>()
  private readonly envsToSkip = ['tikzpicture']
  + private readonly newCommandRegex = /^(renewcommand|newcommand|providecommand|DeclareMathOperator)(\*)?$/
  constructor(extension: Extension) {
  this.extension = extension
  @@ -158,6 +159,10 @@ export class Reference implements IProvider {
  const useLabelKeyVal = configuration.get('intellisense.label.keyval')
  const refs: vscode.CompletionItem[] = []
  let label = ''
  + if ((latexParser.isCommand(node) && node.name.match(this.newCommandRegex)) || latexParser.isDefCommand(node)) {
  + // Do not scan labels inside \newcommand & co
  + return refs
  + }
  if (latexParser.isEnvironment(node) && this.envsToSkip.includes(node.name)) {
  return refs
  }
  