[Feature Request] Autocomplete also inserts brackets at the end of functions()
I did some research, and pretty much every other major language extension like javascript, c#/++ and python have settings to allow autocomplete to add brackets at the end of function calls. It would be nice to see this feature implemented in this extension.
As an example imagine I want to autocomplete the function foo, right now it autocompletes it as is, ideally it would autocomplete it as foo().
There's already an option that does this, I forgot what it's called though
I checked the extension's settings thoroughly like 3 times for an hour before making this issue and no, no there isn't. You are probably confusing it for the "auto close brackets" setting that just adds a ) whenever you type a (, that's absolutely not what I'm talking about here.
I checked the extension's settings thoroughly like 3 times for an hour before making this issue and no, no there isn't. You are probably confusing it for the "auto close brackets" setting that just adds a
)whenever you type a(, that's absolutely not what I'm talking about here.
https://github.com/LuaLS/lua-language-server/assets/25426233/3e07aee8-0ad3-4d7c-9182-ceb5be06b6c7
like this?
I checked the extension's settings thoroughly like 3 times for an hour before making this issue and no, no there isn't. You are probably confusing it for the "auto close brackets" setting that just adds a
)whenever you type a(, that's absolutely not what I'm talking about here.Screen.Recording.2023-10-12.at.12.19.52.mov like this?
Yeah! Sorta. It's more like this. Though maybe it could have a setting to just add the brackets, and a setting to autocomplete the arguments. The video is spliced for showcase purposes.
https://github.com/LuaLS/lua-language-server/assets/57754112/c9cca2a9-72b3-450b-8759-d02b8c24cab8
Adding a little +1 here. In the majority of cases when using functions (I'd say about > 95%) you're actually calling the function. The other 5% or less is for when you want to use closures and the sort. Setting code snippet to "Replace" is alright but I find it gets in the way a lot. Also if you have overloads it forces to select the function first before typing it out.