godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.54k stars 153 forks source link

autocomplete adds extra characters #470

Closed Tobio89 closed 1 year ago

Tobio89 commented 1 year ago

Godot version

v3.4.4.stable.official [419e713a2]

VS Code version

1.77.3

Godot Tools VS Code extension version

1.3.1

System information

MacOS Ventura 13.3.1

Issue description

When I use autocomplete on strings such as ui_accept, if I accept the autocomplete, it prints extra quote and parenthesis characters that break the string, and I have to go back and fix it.

Example: if Input.is_action_just_pressed(""ui_accept"("

image

This is the only issue I've run into so far, really grateful for this plugin, this is the only thing that I've found that significantly affects me whilst using GDScript in VSCode.

Steps to reproduce

type if Input.is_action_just_pressed(" and then press enter or tab to accept the autocomplete.

DaelonSuzuka commented 1 year ago

This is a known issue, and unfortunately it's not actually related to this extension. All the autocomplete suggestions are provided by the Language Server which is a component of the Godot editor. You should open an issue over on the Godot repo.

Tobio89 commented 1 year ago

Thanks, I'll do that :)

Tobio89 commented 1 year ago

https://github.com/godotengine/godot/issues/76639

I made the issue, I thought I'd share it here too in case other people stumble upon it. Shall I close this issue?

Calinou commented 1 year ago