Skip to content

Hover tooltip extent on Quarto Bibtex citations extends too far #842

@acebulsk

Description

@acebulsk

Bug description

Hover tooltip extent spans entire extent of paragraph past the location that contains a bibtex citation.

Steps to reproduce

  1. Open quarto document with long paragraph with citation using @nameYEAR.
  2. Include bib file containing citation in same workspace.
  3. Mouse over paragraph before citation (hover does not appear as expected)
  4. Mouse over paragraph after citation (hover continues to appear far away from citation)

Reproducible Example

quarto-file.qmd

---
title: "Quarto Citation Hover Example"
format: pdf
bibliography: references.bib
---

# Introduction

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Curabitur pretium tincidunt lacus, nec volutpat elit fermentum ut. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et. This is a test paragraph where a citation is included in the middle of the text to illustrate how VS Code shows hover tooltips for citations [@Smith2020]. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Curabitur pretium tincidunt lacus, nec volutpat elit fermentum ut. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et.

references.bib

@article{Smith2020,
  author  = {John Smith and Jane Doe},
  title   = {An Example Article for Testing},
  journal = {Journal of Test Cases},
  year    = {2020},
  volume  = {12},
  number  = {3},
  pages   = {45--67},
}

Actual behavior

Hover tooltip extent spans entire extent of paragraph past the location that contains a bibtex citation.

Expected behavior

Expect the tool tip hover to only appear when hovering over the actual citation not over the entire paragraph. The expected behaviour works for issues/problems identified by positron (identified with blue squiggle) where the issue tooltip/hover appears when you mouse over the issue but not for the entire paragraph.

Your environment

R 4.4.2
Quarto 1.8.25
Ubuntu Release: 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvscode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions