vscode-intelephense icon indicating copy to clipboard operation
vscode-intelephense copied to clipboard

Offer completion suggestions for parameter declarations if phpdoc already added

Open bmewburn opened this issue 5 years ago • 3 comments

#705

bmewburn avatar Oct 04 '19 20:10 bmewburn

I created an extension that does this at https://marketplace.visualstudio.com/items?itemName=ssigwart.php-extra-completions.

@bmewburn, feel free to copy this into your extension if you want. I'll try to remove it from my extension once you support it in your official extension. Also, I know this is closed source, but if you want me to help with anything, I'd be willing to help.

ssigwart avatar Nov 23 '21 03:11 ssigwart

@ssigwart You can add @throws (exception) in addition. Also those exceptions that fall out in the methods used.

ildarik081 avatar May 19 '22 11:05 ildarik081

@ildarik081, I assume you mean in my extension, so it's probably more fitting to add something like this as an issue in https://github.com/ssigwart/vscode-php-extra-completions/issues. However, in this case, it's not something I can reasonable do. The vscode intelephense plugin does an incredible amount of work to parse all the files and build out some type of database of classes, functions, exceptions, etc. My extension is just a simple string matching done on a single file.

ssigwart avatar May 20 '22 03:05 ssigwart