Currently break
and continue
will get suggested when they are not in a loop, suggesting invalid code
1 Like
I mean like intellisense tells you its wrong anyway i don’t see a significant problem here
1 Like
It will also suggest return
, if
, then
, and any keyword anywhere with intellisense, and it’d cause an error. It’s really not that big of a deal.
It’s supposed to be intellisense not whateversense
1 Like
It’s just an autocomplete. It’s meant to suggest what you are typing, not what the context is.
Also, continue is there for backwards compatibility with variable names.
Thank you for the suggestion.
We have created a ticket to track this, but it is a lower priority right now.
For Luau, we also accept code contributions on GitHub if somebody wants to make this change earlier: Pull requests · Roblox/luau · GitHub
1 Like