Vscode-intelephense: Include wordpress stubs that can be enabled in intelephense.stubs

Created on 6 Dec 2019  路  10Comments  路  Source: bmewburn/vscode-intelephense

For heavy wp users that don't keep core files in the workspace. They can then have a common workspace/user config that gives wp intelligence without manually installing stubs or including core in each project.

Most helpful comment

Available in 1.3.3. Needs to be activated by adding wordpress to the intelephense.stubs array in settings.

All 10 comments

Available in 1.3.3. Needs to be activated by adding wordpress to the intelephense.stubs array in settings.

Sorry to add to a closed issue. I appreacite the fix you've done for this, it's fixed the problem arising for WordPress functions but I'm still getting errors appear for generic PHP functions, such as:

Undefined function 'trim'.intelephense(1010) and Undefined function preg_match'.intelephense(1010)

Is there something obvious I'm missing here?

@TidyLuke looks like you've removed other things from intelephense.stubs. Try removing this setting and adding wordpress from UI (ctrl+comma). There should be like 80 items in this list.

@KapitanOczywisty you're right! Thank you, adding this fix to settings.json led me to overwrite everything esle, doh! Thanks again :)

Where are the WordPress stubs pulled from? Where would I go to report an issue against the WordPress stubs?

It is possible to add support also for https://github.com/php-stubs/woocommerce-stubs ?

@Mte90 Is it maintained?

This project or intelephense? AS i can see they are both mantained.

All right.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

umpirsky picture umpirsky  路  4Comments

pseudoanime picture pseudoanime  路  3Comments

steven7mwesigwa picture steven7mwesigwa  路  4Comments

9brada6 picture 9brada6  路  3Comments

mushmelty picture mushmelty  路  4Comments