Sublime Forum

How to hide LSP popups while typing?

#1

How do I disable the following popups while typing? These types of popups are why I avoid using IDEs like VisualCode, and would like to keep my editing distraction free. I don’t want to remove the involved packages, since I’d still like to get these popups on demand, like with a key, or a hover delay, just continually while typing.

I have tried setting “show_definitions: false” in my settings, but it doesn’t disable them. I also tried that in the LSP settings.

0 Likes

Disable LSP as-you-type documentation
#2

This is the signature help popup.

You can disable it via

{
    "disabled_capabilities": {
        "signatureHelpProvider": {
            "triggerCharacters": true,
            "retriggerCharacters": true
        }
    }
}

in the server-specific LSP settings, i.e. either in the corresponding settings file if you use a helper package like for example LSP-typescript, or otherwise in the server configuration under the "clients" key in the LSP settings.

It should still be possible to define a key binding to trigger it on demand.

This is not the first time someone asks this question, so I wonder whether maybe there should be added a new setting "show_signature_help_while_typing": true for the LSP package?

Btw, the behavior for the signature help feature in JavaScript/TypeScript might be a bit suboptimal, because the JavaScript syntax doesn’t provide the necessary information to let plugins know when the user is currently typing the arguments of a function call - https://github.com/sublimehq/Packages/issues/3460

1 Like

#3

Thank you. This seems to block the popup.

A global setting like "show_signature_help_while_typing": false as you suggest would be nice – in case other servers start adding popup information. I’d actually be in favour of an even more global value show_popups_while_typing: false which is used as the default for anything that can popup while typing. I only want popups when I ask for them (hovering, or with a shortcut key)

1 Like

#4

Thank you @jwortmann
for others’ future reference: the key binding to trigger the signature help provider is ctrl alt space for Linux, and is listed here

0 Likes