JohnnyMorganz / luau-lsp

Language Server Implementation for Luau
MIT License
248 stars 59 forks source link

Autocomplete end does not work with `function name()` but works with `local function name()` #554

Closed AridAjd closed 4 months ago

AridAjd commented 9 months ago

When you do function name(), the end is not autcompleted, but when you do local function name() (adding the local before function), it properly autocompletes the end. This problem occurs with Autocomplete end enabled. Here's a video:

https://youtu.be/cxOV6Rla3s0

(added link because github doesn't allow vids > 10mb)
JohnnyMorganz commented 4 months ago

Underlying issue is https://github.com/luau-lang/luau/issues/1328