Vscode-intelephense: Custom stubs

Created on 3 Jun 2020  Â·  5Comments  Â·  Source: bmewburn/vscode-intelephense

Feature description or problem with existing feature
I am trying to integrate phalcon/ide-stubs but just default values allowed.

"intelephense.stubs": [ "path\\phalcon\\ide-stubs\\src\\Phalcon" ],

Describe the solution you'd like
Another options for adding custom stubs path.

All 5 comments

I think following the installation section in https://github.com/phalcon/ide-stubs should just work.

You just have to let intelephense index those stub files anyway. If those file are in your project (as a dev dependency as the doc suggests), it should be indexed by intelephense.

I think following the installation section in https://github.com/phalcon/ide-stubs should just work.

You just have to let intelephense index those stub files anyway. In those file are in your project (as a dev dependency as the doc suggests), it should be indexed by intelephense.

Thank you for your reply. I tried to copy on my project folder, it's indexed and worked.
But i tried to add "Intelephense › Environment: Include Paths" it's not worked.

image

tracking adding folders outside of workspace in #253

I discovered another way to index phalcon without affecting composer.json - just add phalcon/ide-stubs to your project's parent directory and open parent dir from vscode.
e.g.

before:

  • your_project_dir

after:

  • your_parent_dir (open it with VS Code)

    • your_project_dir

    • phalcon

I discovered another way to index phalcon without affecting composer.json - just add phalcon/ide-stubs to your project's parent directory and open parent dir from vscode.
e.g.

before:

  • your_project_dir

after:

  • your_parent_dir (open it with VS Code)

    • your_project_dir
    • phalcon

Though not the most scalable solution, it works perfectly! The only thing that works for me on a Mac

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vanasis picture vanasis  Â·  4Comments

ghnp5 picture ghnp5  Â·  3Comments

steven7mwesigwa picture steven7mwesigwa  Â·  4Comments

zlianon picture zlianon  Â·  3Comments

pseudoanime picture pseudoanime  Â·  3Comments