Flow-for-vscode: Hover on imported type shows only "Imported type from"

Created on 26 Sep 2018  路  7Comments  路  Source: flowtype/flow-for-vscode

Hi,

Is it expected behavior that on hover I only see 'Imported type from...' instead of real type presentation?

What's interesting that VS Code can easily show me real type definition if I switch import syntax to import {type State} but Flow still shows "imported type'

image

Most helpful comment

Any news?

All 7 comments

saw that too, makes usage of flow nearly useless in vscode :-/

Any news?

Same here, very frustrating.

Is this related to flow-for-vscode or flow itself ?

I believe this is related to https://github.com/facebook/flow/issues/7008 Flow changed the info that it returns about types.

Does anyone know if there is a way to use the --expand-json-output when flow-for-vscode calls flowService.flowGetType? this is a command line arg but I assume there is something similar for flowGetType -> type_at_pos

Dear contributors, please, fix this. Impossibru to write code without this import working.

Hi @vkosovskikh - maybe you can take a look at fixing it?

FWIW, this is probably an issue at the Flow LSP level

closing see issue #310

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

dominictwlee picture dominictwlee  路  5Comments

ajhyndman picture ajhyndman  路  4Comments

jpokrzyk picture jpokrzyk  路  6Comments

rattrayalex-stripe picture rattrayalex-stripe  路  4Comments