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
It currently supports diagnostics (i.e. finding errors and warnings), go-to-definition and hover.
And there is not mentions to autocomplete feature but it works partially, at least for me. So what is the status for autocomplete feature?
I did some tests and it does not work with functions/use className, and the CoreGenericFunctions.phpstub does not include the descriptions in the docblocks. I also found other cases like this (#2318).
There's partial support – and I've just updated the documentation.
LSP autocomplete support in Psalm is not a feature I'm going to spend much time on as it's a pretty complex area and Psalm has more pressing features & issues.
If you're looking for better autocomplete support I welcome PRs, but there are also tools like Intelephense that have more LSP features, and also a paid plan.
The problem with Intelephense is that the source code of LSP server is private and there is not support for advanced features like @template (bmewburn/vscode-intelephense#1144) or array shapes.
It is for that reason that I am searching alternatives but no luck.
The only thing holding back Psalm's LSP support is that nobody's working on it. I'd be very happy for someone to work on more completion features, but that sort of work is well outside what most PHP developers do day-to-day.
The documentation says:
And there is not mentions to autocomplete feature but it works partially, at least for me. So what is the status for autocomplete feature?
I did some tests and it does not work with
functions
/use className
, and theCoreGenericFunctions.phpstub
does not include the descriptions in the docblocks. I also found other cases like this (#2318).It may be interesting to specify the LSP features supported (https://microsoft.github.io/language-server-protocol/specifications/specification-current/) to avoid confusions and appeal to the developers to collaborate with this project (including me).
Currenty there is not a full PHP support for VSCode and this project has all the potential for it.
The text was updated successfully, but these errors were encountered: