I'm trying to get custom stubs working for the different plugins we use within WordPress development.
I develop within the theme file directly and upload to a remote development server, and don't want to pull the full site to get context and linting that way.
I've managed to get ACF and WooCommerce ones working by add git repos for them via composer within the project. Since the stubs don't exist for the other stuff we work with, i've manually created them using the php-stubs generator. I've then added these to the vendor/php-stubs folder where the others were added. But it doesn't pick them up. After much trial and error it seemed to recognise it once, but then after 2 mins lost visibility of it and can't get it working again.
Any ideas? What's the standard practice for adding custom stubs?
Cheers