Skip to content

Unable to disable snippetSupport with Eglot in Emacs #1219

Open
@IceAsteroid

Description

@IceAsteroid

Code editor

Emacs

Platform

Void Linux

Version

5.0.0

What steps will reproduce the bug?

bash-language-server doesn't disable snippet candidates for completion with Eglot in Emacs.

I've set the variable like follows before starting eglot in a shell scripting file:

       eglot-stay-out-of '(company
                           yasnippet)

Or

       eglot-stay-out-of '(yasnippet)

And M-x eglot-events-buffer has this part "completionItem":{"snippetSupport":false,, the "snippetSupport":false seems already to be sent to the server, but bash-language-server still sends snippet candidates for completion.

I've also tested for another server clangd for clang files, it works fine and respects the inactivation of yasnippet disabled in the eglot-stay-out-of variable, which doesn't send snippet candidates after that.

Here's the discussion in eglot repo: joaotavora/eglot#1459

It seems not an eglot bug on its side, so I post an issue here.

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

Being able to disable snippetSupport so the server doesn't send snippet candidates for completion at point in Emacs

What do you see instead?

Snippet candidates are still shown after disabling yasnippet as the snippet completion engine in eglot.

Additional information

Logs are too long, The logs were posted on an eglot's repo disscussion page joaotavora/eglot#1459

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions