In that position: ```php public function providePrepare(): <> ``` I should get types as completion. Currently I get keywords (which is also wrong).
Activity
dantleech commentedon Jan 17, 2021
works for me?
BladeMF commentedon Jan 17, 2021
A VSCode-only issue then?

dantleech commentedon Jan 17, 2021
I think you need to type at least one letter, I don't get a single suggestion at this point.
BladeMF commentedon Jan 17, 2021
Still text suggestions only:

BladeMF commentedon Jan 17, 2021
As opposed to:

dantleech commentedon Jan 17, 2021
dantleech commentedon Jan 18, 2021
Maybe worth checking the language server log in VSCode? maybe it is returning but not completing for another reason?
BladeMF commentedon Jan 18, 2021
Hm, right. Will take a look when I can. Let's leave this open.
przepompownia commentedon May 5, 2022
For me, primitive types and
voidare not present. For some reason function names appear there.dantleech commentedon May 5, 2022
the "culprit" is
phpactor/lib/Completion/Bridge/TolerantParser/ReferenceFinder/NameSearcherCompletor.php
Line 18 in 1280fc4
For the docblock work there is now
phpactor/lib/Completion/Bridge/TolerantParser/TypeSuggestionProvider.php
Line 10 in 1280fc4
So whateter the solution it should probably use that (and that should filter the results for classes only)
dantleech commentedon May 8, 2022
should be fixed in #1558
przepompownia commentedon May 8, 2022