lua-language-server
lua-language-server copied to clipboard
Anonymous function whitespace
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
- Type
table.sort({},. - Once it suggests to autocomplete the template function, press Enter.
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