diff --git a/src/Definition.php b/src/Definition.php index 12db9c1..5d62181 100644 --- a/src/Definition.php +++ b/src/Definition.php @@ -98,6 +98,7 @@ class Definition * @var string */ public $documentation; + /** * Parameters array (for methods and functions), for use in textDocument/signatureHelp * diff --git a/src/DefinitionResolver.php b/src/DefinitionResolver.php index bf63452..1ae4cf4 100644 --- a/src/DefinitionResolver.php +++ b/src/DefinitionResolver.php @@ -238,10 +238,8 @@ class DefinitionResolver $def->parameters = []; if (property_exists($node, 'parameters') && $node->parameters) { foreach ($node->parameters->getElements() as $param) { - //var_dump($param); die(); $def->parameters[] = new ParameterInformation( $this->getDeclarationLineFromNode($param), - //$param->getName(), // TODO: rebuild this $this->getDocumentationFromNode($param) ); } diff --git a/src/Server/TextDocument.php b/src/Server/TextDocument.php index e936cf8..7274213 100644 --- a/src/Server/TextDocument.php +++ b/src/Server/TextDocument.php @@ -417,6 +417,14 @@ class TextDocument }); } + /** + * The signature help request is sent from the client to the server to request signature information + * at a given cursor position. + * + * @param TextDocumentIdentifier $textDocument The text document + * @param Position $position The position inside the text document + * @return Promise + */ public function signatureHelp(TextDocumentIdentifier $textDocument, Position $position): Promise { return coroutine(function () use ($textDocument, $position) {