microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.37k stars 28.61k forks source link

Variable Comment context is not accurate #225277

Open himanshulikhar55 opened 1 month ago

himanshulikhar55 commented 1 month ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. In C file, declare variables one after other and add comments using '//'.
  2. If you hover on the variables, the comment appear as contexts about the variables.
  3. But if you hover above the subsequent variables, the comments of previous variables also appear in the context.
  4. Does not happen if the comments are of the form '/ /'. Screenshot 2024-08-09 193402 Screenshot 2024-08-09 193434
vs-code-engineering[bot] commented 1 month ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.92.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

himanshulikhar55 commented 1 month ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.92.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

Updated to the latest version and the issue still exists.