Closed moritztim closed 10 months ago
A lot of comments include examples or snippets of usage code, so this is useful behavior in those instances.
It is unfortunate that the Language Server isn't correctly resolving the class of the current file when providing hovers. The correct behavior in the situation you posted would be for it recognize that EnumLabel.gd
is not a SegmentShape2D
or a Color
, and thus a
doesn't refer to a known symbol symbol right now.
I also couldn't change this behavior even if I wanted to, because hovers are provided by the engine itself, using its Language Server. This extension just displays what it gets sent.
Hmm yeah it kinda sucks that there's no formatting in comments to explicitly tell the language server that this is a code snippet. Oh well
@DaelonSuzuka if you don't mind, do you know anyone familiar with Godot's LSP codes? Just in case.
@atirut-w Why does that matter?
Fine, then. I'll study it myself during free time.
Godot version
v4.1.3.stable.arch_linux
VS Code version
1.84.2
Godot Tools VS Code extension version
1.3.1
System information
Arch Linux
Issue description
Steps to reproduce
Hover over a comment