You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
during completion, we rely on phpactor's output to show extra information (such as FQN) for each completion candidate, using company's annotation function.
company provides other ways to give contextual help for each candidate. Here's an extract from its source
meta: The second argument is a completion candidate. Return a (short)
documentation string for it.
doc-buffer: The second argument is a completion candidate. Return a
buffer with documentation for it. Preferably use `company-doc-buffer'. If
not all buffer contents pertain to this candidate, return a cons of buffer
and window start position.
It would be nice to use php's documentation when completion candidates are php functions (maybe using php-mode's php-search-local-documentation function ?)
The text was updated successfully, but these errors were encountered:
I think it would be better to use the candidate's doc-comment to generate the annotation - this way it'll work for user-defined functions as well as built-ins (which are provided by the jetbrains/phpstorm-stubs library)
@MarTango you mean generate the content for meta, no ? annotation is already used and populated with details from phpactor.
That said, I think what you mention does not exclude what I proposed as I believe phpactor now gives more details for each candidate and we'll know whether the candidate is a native php function or a user defined one (worth a check to be sure).
during completion, we rely on phpactor's output to show extra information (such as FQN) for each completion candidate, using company's
annotation
function.company provides other ways to give contextual help for each candidate. Here's an extract from its source
It would be nice to use php's documentation when completion candidates are php functions (maybe using php-mode's
php-search-local-documentation
function ?)The text was updated successfully, but these errors were encountered: