Properly hiding when done with params
parent
d433ae4ed0
commit
75e5e249da
|
@ -178,6 +178,9 @@ class SignatureHelpProvider
|
||||||
$stack = [];
|
$stack = [];
|
||||||
while ($value !== "\0") {
|
while ($value !== "\0") {
|
||||||
$lex->getNextToken($value);
|
$lex->getNextToken($value);
|
||||||
|
if (($value === ")" || $value === ";") && !count($stack)) {
|
||||||
|
return $help;
|
||||||
|
}
|
||||||
if ($value === ',' && !count($stack)) {
|
if ($value === ',' && !count($stack)) {
|
||||||
$help->activeParameter++;
|
$help->activeParameter++;
|
||||||
}
|
}
|
||||||
|
@ -191,7 +194,9 @@ class SignatureHelpProvider
|
||||||
}
|
}
|
||||||
} catch (\Exception $ignore) { }
|
} catch (\Exception $ignore) { }
|
||||||
}
|
}
|
||||||
$help->signatures[] = $signature;
|
if ($help->activeParameter < count($signature->parameters)) {
|
||||||
|
$help->signatures[] = $signature;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $help;
|
return $help;
|
||||||
|
|
Loading…
Reference in New Issue