Created attachment 172877 [details] screen recording of the issue SUMMARY I've run into this with both rust-analyzer and pyright, it's not language server dependent. The following trivial snippet reproduces the issue for me with pyright (which I'm using via a `pyright-langserve --stdio` LSP plugin setting): import sys def main(): sys.exit(0) See video for effect if you can't reproduce. STEPS TO REPRODUCE 1. Use the pyright language server and open a file containing the snippet above. 2. Hover over the `exit` token, wait for the box to appear, and move the cursor around on top of `exit` for a while. OBSERVED RESULT See summary. Pyright version 1.1.376 SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.1.4 KDE Frameworks Version: 6.5.0 Qt Version: 6.7.2 Kernel Version: 6.10.5-arch1-1 (64-bit)
Yup, also known. A fix is in the works.
On master it should not be reproducible. It is still theoretically possible, but the main bug is gone and a bigger fix will land in future that fixes the theoretical issue as well. Thanks for reporting.