microsoft / vscode

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

Can't take screenshot of tooltip on Linux #162860

Closed flleeppyy closed 2 years ago

flleeppyy commented 2 years ago

Type: Bug

This is similar to #53148. Trying to take a screenshot while hovering over something that shows a tooltip, it will disappear when you try to screenshot. This is extremely annoying for when I'm trying to screenshot errors.

  1. Hover over a piece of code that has a tooltip
  2. Try to take a screenshot, tooltip disappears.

I've disabled all my extensions and the problem still persists.

VS Code version: Code 1.71.2 (74b1f979648cc44d385a2286793c226e611f59e7, 2022-09-14T21:12:14.256Z) OS version: Linux x64 5.19.0-76051900-generic Modes: Unsupported Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Genuine Intel(R) CPU 0 @ 2.20GHz (8 x 2893)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|3, 2, 1| |Memory (System)|23.36GB (14.72GB free)| |Process Argv|--unity-launch --crash-reporter-id cbbdbfa7-edc5-4cfd-83e0-1bf5d87191c5| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|pop| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|pop| |XDG_SESSION_TYPE|x11|
Extensions (66) Extension|Author (truncated)|Version ---|---|--- vscode-openapi|42C|4.13.0 vscode-css-formatter|aes|1.0.2 vscode-ant-design-vue-helper|ant|1.0.6 better-toml|bun|0.3.2 path-intellisense|chr|2.8.1 dart-code|Dar|3.50.0 flutter|Dar|3.50.0 vscode-markdownlint|Dav|0.48.1 vscode-eslint|dba|2.2.6 javascript-ejs-support|Dig|1.3.1 jquerysnippets|don|0.0.1 escaping-characters|drp|1.0.0 es7-react-js-snippets|dsz|4.4.3 vscode-html-css|ecm|1.13.1 json-tools|eri|1.0.2 prettier-vscode|esb|9.9.0 vscode-firefox-debug|fir|2.9.8 vdf|GEE|0.0.7 html-slim-scss-css-class-completion|gen|1.7.8 ctrl-semicolon|Gfo|0.1.0 beautify|Hoo|1.5.0 discord-vscode|icr|5.8.0 vscode-cdnjs|Jak|0.19.0 webpack|jer|3.0.0 vscode-position|jtr|1.1.2 google-fonts|lio|0.0.1 powercord-snippets|mar|1.1.0 pretty-formatter|mbl|0.2.2 regexsnippets|Mon|1.0.2 vscode-scss|mrm|0.10.0 python|ms-|2022.3.1931132634-dev vscode-pylance|ms-|2022.6.1-pre.1 jupyter|ms-|2022.8.1002431955 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.9 remote-wsl|ms-|0.66.3 hexeditor|ms-|1.9.9 vsliveshare|ms-|1.0.5733 vsliveshare-audio|ms-|0.1.91 vsliveshare-pack|ms-|0.4.0 fix-json|oli|0.1.2 material-icon-theme|PKi|4.20.0 java|red|1.11.0 vscode-yaml|red|1.10.1 LiveServer|rit|5.7.9 synthwave-vscode|Rob|0.1.14 rust-analyzer|rus|0.3.1229 vs-code-prettier-eslint|rve|5.0.4 vue-vscode-snippets|sdr|3.1.1 crates|ser|0.5.10 background|sha|1.2.1 code-settings-sync|Sha|3.4.3 vscode-nginx|sha|0.6.0 prettier-vscode|Sim|2.0.7 tabnine-vscode|Tab|3.6.15 vue-docs|tit|1.0.2 vscode-lldb|vad|1.8.1 intellicode-api-usage-examples|Vis|0.2.4 vscodeintellicode|Vis|1.2.28 vscode-java-debug|vsc|0.44.0 vscode-java-dependency|vsc|0.21.0 vscode-java-pack|vsc|0.25.3 vscode-java-test|vsc|0.37.1 vscode-maven|vsc|0.39.0 volar|Vue|0.40.13 qf|Wsc|6.8.122 (3 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyone:30548225 2144e591:30553903 pyindex848cf:30577861 fc301958:30573243 ```
roblourens commented 2 years ago

There is probably nothing we can do about this. If you can set up to take a screenshot on a delay, that often helps. What type of tooltip is this? There are a few different things that show up in different places.

vscodenpa commented 2 years ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

flleeppyy commented 2 years ago

Coming back to this, this is vscodes fault, as it seems that hitting any letter or hitting print screen, will hide the popup before screenshot software gets a chance to capture it.

What type of tooltip is this?

It's the tooltip that shows up when hovering over code, like a variable or an error.