Add LSP telemetry message for hh_server busy status
commite3296130b86d1a5e65be18998567e2a0a77676fd
authorKenneth Li <kqli@fb.com>
Fri, 16 Aug 2019 22:39:18 +0000 (16 15:39 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Fri, 16 Aug 2019 22:41:23 +0000 (16 15:41 -0700)
tree8aec15fa9afbb8986e29c103228ac9b610faf717
parent8b7f43b70f5f7b712ebbea8c9b395b5794f068b5
Add LSP telemetry message for hh_server busy status

Summary: This message makes it possible for LSP clients to know when `hh_server` is done typechecking. The important state is `Done_global_typecheck` but I included the other states for completeness -- if this is too spammy, I can change it.

Reviewed By: arxanas

Differential Revision: D16846019

fbshipit-source-id: f1bc433cd357eb1bd4a75f1fa365970eac733ea3
hphp/hack/src/client/clientLsp.ml
hphp/hack/src/utils/lsp/lsp.ml
hphp/hack/src/utils/lsp/lsp.mli
hphp/hack/src/utils/lsp/lsp_fmt.ml