Open NeoKaios opened 5 months ago
I'm a bit confused now - was this fixed by the referenced PR?
No it was not, atm when hovering or [go to definition] on the example given, the lsp fails to find the definition
@nberth any ETA here? [I just make a mental list for a possible switch from bitlang.cobol]
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.