Skip to content

Conversation

ipkiss42
Copy link

The Query::position_info_at() function can return one index when the value is a non-empty array. In this case, the Query::lookup_keys() function will add another one, resulting in two index keys. But the code was only removing one, causing hover to break for keys with a non-empty array value.

This change avoids the issue by removing index keys in a while loop.

Closes #788

The `Query::position_info_at()` function can return one index when the
value is a non-empty array. In this case, the `Query::lookup_keys()`
function will add another one, resulting in two index keys. But the code
was only removing one, causing hover to break for keys with a non-empty
array value.

This change avoids the issue by removing index keys in a while loop.

Closes tamasfe#788
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hover not working on keys whose value is a non-empty array

1 participant