jupyterlab-lsp icon indicating copy to clipboard operation
jupyterlab-lsp copied to clipboard

Make hover tooltip show up automatically after specified delay

Open krassowski opened this issue 4 years ago • 1 comments

At the moment the user has to press Ctrl (or a different modifier key if changed in settings) to bring up the hover tooltip. We could allow specifying a delay as an alternative/additional activation method. This is how it is implemented in VScode I think.

Sketch for setting schema:

"delay": {
  "title": "Hover delay",
  "type": ["number", "null"],
  "default": 300,
  "description": "Number of milliseconds after which the hover tooltip should be shown. Set to `null` to disable the automatic display of the tooltip (it will still be possible to bring it up with the modifier key)."
},

The following files are relevant:

Questions to the users:

  • should it be enabled by default?
  • what should be the default delay?

krassowski avatar Sep 14 '20 17:09 krassowski

Let's re-ignite this auto-tooltip discussion.

  • should it be enabled by default?

Yes. A consistent UI/UX is what I like.

  • what should be the default delay?

300 ms, the default value in VS code.

yamaton avatar Apr 29 '22 14:04 yamaton

Closing as this was implemented in #864. Thank you again!

krassowski avatar Sep 17 '23 19:09 krassowski