Variable reference from $VAR to @VAR to avoid object conflict

This commit is contained in:
Martino Ferrari committed 2026-01-30 01:01:47 +01:00
1 parent 0cbbf5939a
commit c3f4d8f465
17 files changed
+52 -39

No files matched your search

+1 -1
View File
@@ -611,7 +611,7 @@ func HandleHover(params HoverParams) *Hover {
} else if res.Reference.TargetVariable != nil {
v := res.Reference.TargetVariable
targetName = v.Name
fullInfo = fmt.Sprintf("**Variable**: `%s`\nType: `%s`", v.Name, v.TypeExpr)
fullInfo = fmt.Sprintf("**Variable**: `@%s`\nType: `%s`", v.Name, v.TypeExpr)
if v.DefaultValue != nil {
fullInfo += fmt.Sprintf("\nDefault: `%s`", valueToString(v.DefaultValue))
}