-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
Close bracket is not generated when autocomplete #152
Comments
Any update on this please? Thanks. |
This is a very annoying issue but I've somehow forgotten about it. Maybe @DaelonSuzuka can fix this? |
Related to #142. |
@atirut-w @Calinou Fixing this in the Language Server is a bit beyond my expertise at the moment. There are a number of other issues with both the Server(at least in 3.x) and the Client that I will eventually be addressing, but it's very complex system and that's going to take some time. Luckily, I think there's a quick and dirty solution by just modifying the completions in the Client based on the context around the cursor/selection. If I have time this week, I'll try to put together a proof of concept. |
Yes, this has been bothering me for quite a while. Other languages in VSCode don't add any sort of parentheses on auto-completion, and this is what I expected for GDScript too. It's one of those things where doing too much automatically will be more trouble than help, and there's many reasons why:
So, please add at least an option to just not add any parentheses automatically. |
This behavior is controlled by the Language Server, which is a component of the Godot Engine itself. This extension does not control the completions, so there's nothing I can do about it. |
@DaelonSuzuka is there an upstream issue which I can track then? So they add an option in the LSP? |
I don't interact with the engine development, so I have no idea. |
Found this, which I hope is the right issue, moved my comment there: godotengine/godot#86488 (comment) |
Only open bracket is generated, closed bracket is not
![Peek 2020-02-26 20-21](https://user-images.githubusercontent.com/6823008/75348842-21b55900-58d6-11ea-86da-2babbeca023a.gif)
Expect that close bracket will be generated too
The text was updated successfully, but these errors were encountered: