facebook/flow

[language server] tooltip showing the wrong type

Closed this issue · 0 comments

Flow version: 0.250.0

Expected behavior

the tooltip should show = "a" | "b" | "c" | "d".

Actual behavior

The tooltip shows = FooBar | LoremIpsum, although type checking seems to work fine.

Screenshot:

Screenshot 2024-10-28 at 11 37 46 AM

This code correctly has an error, but the tooltip mentions incorrect types in the error:

Screenshot 2024-10-28 at 11 43 52 AM

In this code, the string values are all visible:

Screenshot 2024-10-28 at 11 48 38 AM

So it looks like the string value types are correctly checked, just that sometimes the wrong types are referenced for display.