MarkusAmshove / natls

Language Server implementation for the Natural 4GL programming language
MIT License
12 stars 3 forks source link

Include whole variable group-context and dimensions #475

Closed MarkusAmshove closed 3 months ago

MarkusAmshove commented 3 months ago

Having the following structure:

1 #GRP
  2 #GRP2 (1:*)
    3 #GRP3 (1:*)
      4 #VAR (I4)

The hover for #VAR contains the dimensions like this:

dimensions:

1:*
1:*

It would be better to have them documented like this:

dimensions:

2 #GRP2 (1:*)
3 #GRP3 (1:*)

or omit the dimensions and put them to the type. If they're omitted, then it should be on the context:

1 #GRP
2 #GRP2 (1:*)
3 #GRP3 (1:*)
4 #VAR (I4)