microsoft / vscode

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

hover on variables get no tooltips #208356

Open luqimin opened 7 months ago

luqimin commented 7 months ago

Type: Bug

  1. Coding with VSCode for a while(I don't know how long for sure)
  2. Hover on some variables or function names, VSCode will not trigger a hover function, no any tooltips appeared
  3. Go to the system config panel with "CMD + ,", toogle the config "editor.hover.above", everything goes well, hover function is OK now
image

please help

VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:57.520Z) OS version: Darwin arm64 22.5.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|6, 3, 2| |Memory (System)|16.00GB (0.22GB free)| |Process Argv|--crash-reporter-id 3dccce2b-f73d-4bbf-8420-280e0820ab13| |Screen Reader|no| |VM|0%|
Extensions (10) Extension|Author (truncated)|Version ---|---|--- turbo-console-log|Cha|2.10.4 vscode-eslint|dba|2.4.4 prettier-vscode|esb|10.4.0 copilot|Git|1.175.0 intellij-idea-keybindings|k--|1.6.0 vscode-docker|ms-|1.29.0 vscode-language-pack-zh-hans|MS-|1.87.2024031309 material-icon-theme|PKi|4.34.0 material-product-icons|PKi|1.7.0 vscode-stylelint|sty|1.3.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627cf:30244335 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:30992801 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 pydisww2:30991134 cppperfnew:30979542 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 ```
aiday-mar commented 6 months ago

Hi, could you please provide a screen recording showing the issue you are experiencing, and paste here the example of the code you are using? This would help in reproducing the issue.

luqimin commented 6 months ago

https://github.com/microsoft/vscode/assets/12484305/586ab11e-5c1a-4530-88b7-36333fded29c

@aiday-mar Attaching file is a record, and this can happen to any code

// CJS require cache busting
/**
 * @type {() => Promise<ServerBuild>}
 */
async function reimportServer() {
  // 1. manually remove the server build from the require cache
  Object.keys(require.cache).forEach((key) => {
    if (key.startsWith(BUILD_PATH)) {
      delete require.cache[key];
    }
  });

  // 2. re-import the server build
  return require(BUILD_PATH);
}
aiday-mar commented 6 months ago

Hi @luqimin thank you for the response. I am currently not able to reproduce this issue as you can see in the gif below. I noticed that the tokens under your cursor become links. Are you holding pressed some key while hovering (like the ctrl/cmd key)?

This is rather a curious issue and I am wondering if it is caused by some extension. Could you paste here a list of the extensions you are using?

https://github.com/microsoft/vscode/assets/61460952/ea19f17d-1e0e-4698-bb7e-0764f564fd2e

luqimin commented 6 months ago

@aiday-mar thanks for your response.

I was holding CMD, but it's not a problem, the tooltip will not appear whether I hold cmd or not.

And I can't reproduce this issue in other Macbook too, even I signed the same account and settings sync is on. It's really weird.

I tried uninstall vscode, but it does not work, maybe I didn't find the right way to remove vscode completely.

Extensions are listed in the first floor:

Type: Bug

  1. Coding with VSCode for a while(I don't know how long for sure)
  2. Hover on some variables or function names, VSCode will not trigger a hover function, no any tooltips appeared
  3. Go to the system config panel with "CMD + ,", toogle the config "editor.hover.above", everything goes well, hover function is OK now
image

please help

VS Code version: Code 1.87.2 (863d258, 2024-03-08T15:20:57.520Z) OS version: Darwin arm64 22.5.0 Modes:

System Info Extensions (10) A/B Experiments

vscodenpa commented 3 months ago

Hey @aiday-mar, this issue might need further attention.

@luqimin, you can help us out by closing this issue if the problem no longer exists, or adding more information.