Skip to content

load/preload autocomplete injects extra wrapping " #885

@CNDW

Description

@CNDW

Godot version

4.4

VS Code version

1.101.2

Godot Tools VS Code extension version

2.5.1

System information

Windows 10

Issue description

when using load or autoload you get autocomplete hints after you add "" as the first argument

Image

when you accept one of the autocomplete options, the string is inserted as a string inside of the "" that was entered to initiate the first argument

Image

I then have to manually clean out the extra ". The autocomplete select should insert the string content, instead of inserting a string literal into the enclosing "

This issue has been present for as long as I have been using the vscode extension since around the 4.0 release, I've only just now realized how to articulate what I was experiencing.

Steps to reproduce

Open any .gd file in any project, begin creating a variable of any name and typing load() or preload() as the assignment value of the variable.

Type " to initiate the autocomplete hints

Select one of the auto-complete options

the auto-complete will insert the enclosing " instead of just completing the string

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmedlanguage serverIssue is not originating from this extension, but from the LSP instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions