Open secretfork opened 5 years ago
Hi @secretfork, sorry for the delay responding. It looks like this would have to be done by creating a language server extension (https://code.visualstudio.com/api/extension-capabilities/overview#programmatic-language-features).
I'm open to the idea, and I do think it would be a better experience to have things like method auto-completion to be context-aware. Having said that, implementing language server features is a wholly different undertaking than creating a snippet collection. I'm not sure it's within my skill set, and if it is, it would probably take some time to implement.
I'm going to add this to a list of feature requests, and will reach out to you when/if I'm able to get it started.
You can achieve this with the Intelephense extension by adding wordpress
to the intelephense.stubs
setting and then Intelephense will provide the parameter hints.
More info: https://github.com/bmewburn/vscode-intelephense/issues/833
Alternatively, add a copy of WordPress to your project workspace then you get parameter hints as well as being able to navigate directly to the function definitions.
I'm not quite sure this is the right place for this question, but i was redirected here from Q&A on the vs code extension page so here we go:
I'm not so keen on autocompleting the full method and signature with tabstops. Would it be possible to provide a list of possible keywords to choose from (and autocomplete only the method name) and then provide "parameter hints" and "quick info" when you open up a brace such as with php language intellisense, as described here in the documentation for intellisense: