Is it expected that in 1.16, Hovers with null items in their arrays do not render at all #34520
Labels
bug
Issue identified by VS Code Team member as probable bug
editor-contrib
Editor collection of extras
verified
Verification succeeded
Milestone
This seems to be a breaking change in 1.16. I don't know if it's a bug or the old behaviour is considered bad, but it's resulted in a lot of hovers no longer rendering after the update.
HoverProvider
contains Code looks like this:The data passed to the hover is an array - the first item is an object with a language/value and the second item is additional documentation (which is just a markdown string).
If
data.documentation
is null in 1.15, the tooltip still rendered, just ignoring the second item:However after updating, the hover does not appear at all when there's a null in that array.
Is this an expected change? I can update my extension not to put nulls in here, though I don't know whether this might affect other extensions too. It was kinda convenient for Code to skip over this nulls, we could just string a bunch of variables together that may or may not be set for a given hover, but now we'll need to conditionally push them onto an array before sending.
The text was updated successfully, but these errors were encountered: