message: Check the length of the args of \label command. Close
diff: @@ -103,7 +103,7 @@ export class Reference {
  const useLabelKeyVal = configuration.get('intellisense.label.keyval')
  const refs: vscode.CompletionItem[] = []
  let label = ''
  - if (latexParser.isCommand(node) && node.name === 'label') {
  + if (latexParser.isCommand(node) && node.name === 'label' && node.args.length > 0) {
  // \label{some-text}
  label = (node.args.filter(latexParser.isGroup)[0].content[0] as latexParser.TextString).content
  } else if (latexParser.isTextString(node) && node.content === 'label=' && useLabelKeyVal && nextNode !== undefined) {
  