JSON RPC version of autocomplete / didOpenFile messages
commit43c13deb3dfb53524563264c0d590df967cd64a2
authorKasper Kopec <kasper@fb.com>
Tue, 3 Jan 2017 23:51:00 +0000 (3 15:51 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 3 Jan 2017 23:52:36 +0000 (3 15:52 -0800)
tree30fbc25849396f328ac04e62e2d79b3b0a130e87
parenta775cb13103e62b1cdb2e968deba805b48458c41
JSON RPC version of autocomplete / didOpenFile messages

Summary:
The whole point of versions is to be able to make changes, while giving existing users time to adjust. Here is an example of introducing some changes to commands that are already in use:

- rename "contents" of DidOpenFileParams to "text" (for consistency with "text" field of TextEdit)
- remove deprecated fields ("variadic", "min_arity", "pos", "expected_ty") from autocomplete response
- rename func_details to callable_details in autocomplete reposnes (because "func" suggests only a function, and those can also be methods)
- rename getCompletions to autocomplete (consistency with naming in other places)

Reviewed By: jopamer

Differential Revision: D4315591

fbshipit-source-id: aa67c88ba68103add39120adbaba0b9f7b910ccf
hphp/hack/src/ide_rpc/ide_rpc_V0_message_printer.ml
hphp/hack/src/ide_rpc/ide_rpc_V0_method_parser.ml
hphp/hack/src/ide_rpc/ide_rpc_method_parser_utils.ml [new file with mode: 0644]
hphp/hack/src/ide_rpc/ide_rpc_method_parser_utils.mli [copied from hphp/hack/src/ide_rpc/ide_rpc_V0_message_printer.ml with 55% similarity]
hphp/hack/src/ide_rpc/nuclide_rpc_method_parser.ml
hphp/hack/src/ide_rpc/protocol.md
hphp/hack/test/unit/ide/ide_message_parser_test_utils.ml
hphp/hack/test/unit/ide/ide_rpc_V0_message_printer_test.ml
hphp/hack/test/unit/ide/ide_rpc_V0_method_parser_test.ml [new file with mode: 0644]
hphp/hack/test/unit/ide/nuclide_rpc_method_parser_test.ml