lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

Anonymous function whitespace

Open fnv1a opened this issue 1 year ago • 0 comments

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

fnv1a avatar May 04 '24 08:05 fnv1a