Closed knu closed 4 years ago
Currently flow-minor-mode only shows the first line of a type-at-pos output, but a type representation may contain more than one line when a type does not fit in a line.
% node_modules/.bin/flow type-at-pos /path/to/Tweet.jsx 12 52 type Props = { body: string, children?: Node, hashtags: Array<string>, url: string, ... } /path/to/Tweet.jsx:12:52,12:56
In this case, you could only see type Props = {. This PR fixes the problem.
type Props = {
Currently flow-minor-mode only shows the first line of a type-at-pos output, but a type representation may contain more than one line when a type does not fit in a line.
In this case, you could only see
type Props = {
. This PR fixes the problem.