Properly hiding when done with params
parent
d433ae4ed0
commit
75e5e249da
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue