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

Support for auto_prepend_file

Open vanowm opened this issue 3 years ago • 2 comments

Feature description or problem with existing feature Support for auto_prepend_file from php.ini

Describe the solution you'd like When php.ini is configured with auto_prepend_file, VSCode is not aware of the functions/variables in that file and show errors if function from that file was used.

auto_prepend_file allows automatically include php code from specified file to all php files on the server

vanowm avatar May 07 '22 14:05 vanowm

I don't think everyone needs to import auto_prepend_file. It should be up to the project to decide which files to include.

Recommended intelephense.environment.includePaths. It can be configured in the workspace or folder.

tianyiw2013 avatar Jun 18 '22 02:06 tianyiw2013

I'm not sure why anyone wouldn't want it to be automatically recognized by VScode when it debugs using that particular php configuration on a local server?

intelephense.environment.includePaths works well and can be configured globally as well. Thanks.

vanowm avatar Jun 18 '22 06:06 vanowm

closing as there is a workaround for this case.

bmewburn avatar Jan 14 '23 05:01 bmewburn