Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When autocompleting end, the bracket sometimes isn't added when needed #600

Open
AliBussell opened this issue Apr 23, 2024 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@AliBussell
Copy link

See below;
https://github.com/JohnnyMorganz/luau-lsp/assets/166288422/9619b5c3-d77a-463f-b289-0c864e5013ee

@JohnnyMorganz JohnnyMorganz added the bug Something isn't working label May 11, 2024
@JohnnyMorganz
Copy link
Owner

This looks like user error to me - you are deleting the brackets that got added, then autocompleting the end? I don't see why we should add the brackets there afterwards

@lolmanurfunny
Copy link

Just experienced this myself a minute ago and it clicked.

Here's a recreation of that:

Code_izmYnn7qbA.mp4

I went to cut the RunService.PreAnimation:Once(function() portion that was in foo so I could paste it into bar.


The initial video comes off as unnatural since it's merely a showcase of the current behavior rather than a realistic scenario.

@AliBussell
Copy link
Author

@lolmanurfunny Glad someone else could figure out what I mean by this.

@JohnnyMorganz JohnnyMorganz added enhancement New feature or request and removed bug Something isn't working labels Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants