godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.47k stars 148 forks source link

Add basic inlay hint support for GDScript #589

Closed LeoDog896 closed 4 months ago

LeoDog896 commented 4 months ago

Adds #588, creating inlay hints in GDScript files

image

Currently works with Godot 3.x and 4.x (tested on the latest stable of both; 4.2 and 3.5.3)

DaelonSuzuka commented 4 months ago

The basic inlay hints mechanism works, but there are some pathological cases where types are resolved incorrectly. Further incremental improvements can be done in a future PR.

I've set the GDScript inlay hints to be disabled by default and noted it as an experimental feature in the setting description.

Thank you @LeoDog896, and congratulations on your first contribution here. I look forward to working with you again!