Add @param information in signature help
commit76671d7096806b89d4699165b41bfd7507214944
authorYael Goldin <ygoldin@fb.com>
Thu, 26 Sep 2019 18:35:08 +0000 (26 11:35 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 26 Sep 2019 18:37:18 +0000 (26 11:37 -0700)
tree2eb7dfe28330a5726ae1768d689930c3dc9462cd
parentc62c27997ec2d570851482c05ee2171ac9377d26
Add @param information in signature help

Summary:
In method doc blocks, lines with the format
`param $param_name param description`
will be returned in signature help as
```
"parameters": [
  {
    "label": "$param_name",
    "documentation": "param description",
  },
]
```
Multiline parameter descriptions are supported.
Before, only the parameter label was returned

Differential Revision: D17562449

fbshipit-source-id: f4a2eb7c6cb24960a61465714b5862ceb1f824b7
hphp/hack/src/server/serverSignatureHelp.ml
hphp/hack/test/integration/data/lsp_exchanges/signaturehelp.php
hphp/hack/test/integration/test_lsp.py