You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When hovering or going to definition on a condition field (88), the lsp lookup the element under the cursor with the Lsp_lookup.element_at_position function, which in turn uses the fold_unit_group Visitor.
When checking the position of a 88 field, the function returns nothing.
This is because the Lsp_position.sieve skips elements whose loc doesn't include the requested position.
But the loc of the item_definition which contains the 88 field stops after the last sub-fields, not after the last condition field. Like so:
+ 5 WORKING-STORAGE SECTION.
+ 6 > 01 VAL PIC X.
+ ---- ^^^^^^^^^^^^^
+ 7 88 COND VALUE "A".
Once this is fixed, it will possible to hover and go to def on such position.
The text was updated successfully, but these errors were encountered:
When hovering or going to definition on a condition field (88), the lsp lookup the element under the cursor with the
Lsp_lookup.element_at_position
function, which in turn uses the fold_unit_group Visitor.When checking the position of a 88 field, the function returns nothing.
This is because the
Lsp_position.sieve
skips elements whose loc doesn't include the requested position.But the loc of the item_definition which contains the 88 field stops after the last sub-fields, not after the last condition field. Like so:
Once this is fixed, it will possible to hover and go to def on such position.
The text was updated successfully, but these errors were encountered: