godot icon indicating copy to clipboard operation
godot copied to clipboard

Don't autocomplete numbers in GDScript

Open puchik opened this issue 1 year ago • 2 comments

Cancel code autocompletion when a numerical value is entered. Avoids interference when setting numbers

Animation

Closes #72565

puchik avatar Mar 06 '23 03:03 puchik

I think it would be more correct to fix this in GDScript. In other languages (for example JavaScript), completion after numbers may be possible.

dalexeev avatar Mar 06 '23 05:03 dalexeev

What do you mean by fix it in GDScript?

Also, the example you posted still works with this PR. Autcomplete is only cancelled on purely numeric text (not just the presence of digits).

puchik avatar Mar 06 '23 08:03 puchik

Ah I couldn't get it to work yesterday but seems fine today. Fixed!

puchik avatar Mar 06 '23 22:03 puchik

Thanks!

akien-mga avatar Mar 07 '23 07:03 akien-mga

Cherry-picked for 4.0.1.

YuriSizov avatar Mar 13 '23 20:03 YuriSizov