1
0
Fork 0

Add type information to hovers

type-hover
Felix Becker 2017-06-20 13:31:59 +02:00
parent 08fe84de35
commit 37e5ed4cce
1 changed files with 3 additions and 0 deletions

View File

@ -318,6 +318,9 @@ class TextDocument
if ($def->declarationLine) { if ($def->declarationLine) {
$contents[] = new MarkedString('php', "<?php\n" . $def->declarationLine); $contents[] = new MarkedString('php', "<?php\n" . $def->declarationLine);
} }
if ($def->type) {
$contents[] = new MarkedString('text', (string)$def->type);
}
if ($def->documentation) { if ($def->documentation) {
$contents[] = $def->documentation; $contents[] = $def->documentation;
} }