an-sh / flow-minor-mode

Emacs minor mode for editing flowtype files.
BSD 3-Clause "New" or "Revised" License
47 stars 16 forks source link

Add --quiet to flow-minor-cmd-to-string calls. #21

Open NightBlues opened 5 years ago

NightBlues commented 5 years ago

Hi, there! I don't know why, but when I use C-c C-c t (flow-minor-type-at-pos) and others I can't see the result in minibuf because flow adds string "Please wait. Server is handling a request (starting up)" in the beginning of its output. This is not reproduced in normal shell, though env variables are the same. Whole output looks like:

Please wait. Server is handling a request (starting up)
(n: number) => number
/project/src/main.js:8:5,8:10

so, (car (split-string type "\n")) cuts this warning message instead of type signature. I've found the cli key that fixes the issue:

--quiet                           Suppress output about server startup

May be we should add it to command that flow-minor-mode executes? Thank you for this mode!