SIDE fix for class method autocomplete
commitf5c18b85d7df354116f4454aeb953984a38c4215
authorTed Spence <tspence@fb.com>
Thu, 5 Sep 2019 18:37:53 +0000 (5 11:37 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 5 Sep 2019 18:40:10 +0000 (5 11:40 -0700)
tree44fe0026c08906f83a649a1e79ebf0c9ad134ed3
parentdd86cd1fc34157de5c0462639eb9913a3f61564e
SIDE fix for class method autocomplete

Summary:
In debugging of serverless IDE, we were not getting results for docblocks for class methods.  The cause for this is that class method docblocks can only be found using the file/line/column codepath, and this codepath wasn't implemented for serverless IDE.

To solve this:
* Added a new Client IDE message for document location resolve
* Added a new function for "docblock_with_file_contents" in case you are editing a file in the IDE

Reviewed By: 2BitSalute

Differential Revision: D17190656

fbshipit-source-id: c48043afa2fb0f9dfbd57943de00d301478729ce
hphp/hack/src/client/clientLsp.ml
hphp/hack/src/client/ide_service/clientIdeDaemon.ml
hphp/hack/src/client/ide_service/clientIdeMessage.ml
hphp/hack/src/server/serverDocblockAt.ml
hphp/hack/src/server/serverDocblockAt.mli
hphp/hack/src/server/serverRpc.ml
hphp/hack/test/integration/symbol_index_test.ml