1
0
Fork 0

Properly hiding when done with params

pull/250/head
Ivan Bozhanov 2017-01-20 17:44:25 +02:00
parent d433ae4ed0
commit 75e5e249da
1 changed files with 6 additions and 1 deletions

View File

@ -178,6 +178,9 @@ class SignatureHelpProvider
$stack = [];
while ($value !== "\0") {
$lex->getNextToken($value);
if (($value === ")" || $value === ";") && !count($stack)) {
return $help;
}
if ($value === ',' && !count($stack)) {
$help->activeParameter++;
}
@ -191,8 +194,10 @@ class SignatureHelpProvider
}
} catch (\Exception $ignore) { }
}
if ($help->activeParameter < count($signature->parameters)) {
$help->signatures[] = $signature;
}
}
return $help;
}