Skip to content

completion.callSnippet flag has no effect (function completions never add ()) #839

@aridclown

Description

@aridclown

Toggling emmyrc.completion.callSnippet doesn’t seem to change completion behavior.

For example, given a code like this:

function foo(a, b) end

Whenever the autocomplete is resolved, only the function identifier is returned, so the editor never sees () or snippet placeholders, even with "callSnippet": true, e.g.:

Image Image

Expected result

Please, correct me if I'm wrong, but when callSnippet is true, shouldn't the completion item return a snippet insert text such as foo($0), so editors can insert foo() with the cursor between the parentheses?

I'm assuming this was an explicit design choice, right? Since not everyone wants auto-parens (like in chained calls or when passing a function as a reference via a param).

Sorry if I'm missing any specific details here.

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