HoverProvider align bug

“Loading…” thing leads to unexpected behavior
video: https://github.com/user-attachments/assets/062b46ed-39b8-47ec-82c9-b9716a24a826

Why it happens

By default the tooltip will change align (top/bottom) if it runs out of space.
Since the cursor dynamically changes the tooltip content & consequently the height of the tooltip, it may no longer fit with align-top.
Therefore, this leads to annoying blinking and the inability to use tooltips at the beginning of the file or when the file is scrolled so that the tooltip does not have enough space with align top.

Reproducing
  1. Install cspell (streetsidesoftware.code-spell-checker extension)
  2. Open empty file
  3. Paste this content
// 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.
// Dis diam iaculis luctus praesent semper!
// Magna pretium per augue, quisque tristique penatibus.
// Tempus nostra viverra vivamus diam aliquam consequat mattis.
// Nulla faucibus molestie, litora volutpat nec sodales.
// Parturient per et dictum nascetur magnis nostra sit.
// Pretium turpis turpis tellus feugiat nisl placerat eros erat!
// Fusce amet primis tortor maximus, convallis egestas potenti nec.
  1. try to hover word “penatibus”

  2. You’re gorgeous!

video: sorry, this forum limits attachments count
visit github issue to see this vid

To reproduce - it is important that the default tooltip does have enough space with align top, but at the same time, when “Loading…” appears, it should run out of space.

A quick solution i suggest:

  • instead of ugly text based loader (column) make a inline loading circle for example

also posted to HoverProvider align bug · Issue #2803 · getcursor/cursor · GitHub for better previews
since it has <video> tag support & doesnt limits attachments count

solved i think?
cant reproduce it atm, but not found info about it in changelogs.

udp: nvm, its back.