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

let user turn off "Activate tooltip on ctrl"

Open janxkoci opened this issue 9 months ago • 4 comments

Description

Let the user turn off the setting that makes tooltips appear whenever the user presses CTRL. I literally uninstalled LSP just to get rid of the tooltips jumping in my face whenever I pressed CTRL. I press that key a lot for many reasons, including to switch browser tabs, or copy-paste things. I'm used to get tooltips with TAB and friends (e.g. Shift+TAB for help viewer) - in other words, I want the help appear only when I ask for it, not all the time. I've seen in another issue that even hovering can trigger tooltips - add that also to the settings as a toggle please (I did not see it triggered for me during my tests today).

Reproduce

  1. Have some code in a code cell.
  2. Click on some function or object.
  3. Press CTRL.
  4. See tooltip appearing.

Expected behavior

I'd like to be able to turn off tooltips showing up when I don't need them, such as after pressing CTRL, or on hover.

Context

  • Operating System and version: Manjaro Linux (latest)
  • Browser and version: Firefox 135.0
  • JupyterLab version: 4.3.5
  • Language server and version:
    • jupyter-lsp = 2.2.5
    • r-languageserver = 0.3.16
Required: installed server extensions
Config dir: /home/jena/.jupyter

Config dir: /home/jena/miniforge3/envs/slendr/etc/jupyter jupyter_lsp enabled - Validating jupyter_lsp... jupyter_lsp 2.2.5 OK jupyter_server_terminals enabled - Validating jupyter_server_terminals... jupyter_server_terminals 0.5.3 OK jupyterlab enabled - Validating jupyterlab... jupyterlab 4.3.5 OK notebook_shim enabled - Validating notebook_shim... notebook_shim OK

Config dir: /usr/local/etc/jupyter

Required: installed lab extensions
JupyterLab v4.3.5
/home/jena/miniforge3/envs/slendr/share/jupyter/labextensions
        catppuccin_jupyterlab v0.2.3 enabled OK (python, catppuccin_jupyterlab)
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)

/usr/share/jupyter/labextensions @jupyter-lsp/jupyterlab-lsp v5.1.0 enabled OK (python, jupyterlab-lsp) @jupyter-widgets/jupyterlab-manager v5.0.13 enabled OK (python, jupyterlab_widgets)

Disabled extensions: @jupyterlab/completer-extension:base-service @jupyterlab/fileeditor-extension:language-server @jupyterlab/lsp-extension:settings @jupyterlab/notebook-extension:language-server

Note: I already uninstalled r-languageserver, so my LSP is no longer active. I used mamba to install jupyterlab from the conda-forge channel.

janxkoci avatar Feb 10 '25 16:02 janxkoci

I literally uninstalled LSP just to get rid of the tooltips jumping in my face whenever I pressed CTRL

@janxkoci did you try adjusting the settings?

Image

krassowski avatar Feb 10 '25 22:02 krassowski

Unless I misunderstood, but I believe user can change modifier key, or disable this altogether as on the screenshot above. Did I misunderstand?

krassowski avatar Feb 10 '25 22:02 krassowski

Well, I did not find this setting before (it does not turn up when I search for "lsp") - I assumed all settings for LSP are under "Language servers" 🤷‍♂️

janxkoci avatar Feb 10 '25 22:02 janxkoci

That's a good point, this extension contributes several plugins each with its own settings - on top of language-server specific settings - and it would be good to somehow group them together or link from a single place.

krassowski avatar Feb 10 '25 22:02 krassowski