vscode-docker icon indicating copy to clipboard operation
vscode-docker copied to clipboard

Make tooltips user-customizable

Open bwateratmsft opened this issue 4 years ago • 5 comments

With #2592 / #2652 we added some nice Handlebars-templated tooltips to the explorer views. We should look at making them user-customizable.

bwateratmsft avatar Jan 27 '21 16:01 bwateratmsft

I would really like to be able to customize the delay before the tooltip shows. I find it pops up too soon and stops me being able to click on the container I actually want.

houldsg avatar Mar 01 '21 14:03 houldsg

@alexr00 is there any way to set the hover delay?

We could also add a setting to disable the tooltips altogether.

bwateratmsft avatar Mar 01 '21 14:03 bwateratmsft

It looks like this was requested some time ago, but was won't-fixed in Electron and closed external in VSCode. I'm not sure if it's even possible to implement some configuration in VSCode or not--I think @alexr00 would know the answer to that.

bwateratmsft avatar Mar 01 '21 14:03 bwateratmsft

If you're using just string tooltips, then all the won't-fix and close-as-external stand.

However, if you're using MarkdownString, then this is a feature request that we could accommodate through a setting. For tooltips with a MarkdownString we use our own custom hovers and we can control the delay. Currently it is hardcoded to be similar to the system default hovers (about 1500 ms on mac, about 500 ms on Windows and linux).

Opened https://github.com/microsoft/vscode/issues/117894 to discuss.

alexr00 avatar Mar 01 '21 14:03 alexr00

Yep, we're using MarkdownString. Cool!

bwateratmsft avatar Mar 01 '21 14:03 bwateratmsft