Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anonymous function whitespace #2652

Open
fnv1a opened this issue May 4, 2024 · 0 comments
Open

Anonymous function whitespace #2652

fnv1a opened this issue May 4, 2024 · 0 comments

Comments

@fnv1a
Copy link

fnv1a commented May 4, 2024

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Completion

Expected Behaviour

Not adding a whitespace character if a function is anonymous and therefore can't have a name.

Actual Behaviour

Adds a whitespace character like if I were create a regular function, which I can name.

Reproduction steps

  1. Type table.sort({}, .
    image
  2. Once it suggests to autocomplete the template function, press Enter.
    image

Additional Notes

I think it's a bug because I've never seen anyone code like that. I couldn't find anything related to this in the settings nor in the documentation.

Log File

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant