Vscode-intelephense: No autocompletion for Vendor files

Created on 30 Nov 2017  路  3Comments  路  Source: bmewburn/vscode-intelephense

It doesn't autocomplete/use the "Use" statement when I add classes from the vendor folder. I am using the Laravel Framework if it helps to shed more light

Most helpful comment

I have encountered similar issues, but for me the problem was opening the editor and not having the vendor dependencies installed and hence they ware not indexed on startup, maybe try to Clear cache and reload ?

Also, can you verify that "files.exclude" setting does not include **/vendor/, since (Just tested and checked the code) if you have it VSCode will not report the folder inside the wokspace namespace, which is the way the client indexes the workspace, and if it does not "see" it it won't index it.

(Just validated the behaviour, with "files.exclude" - 57 files indexed; without - 1272)

All 3 comments

One thing to check is if you have added any values to files.associations make sure you have included "*.php":"php" as well.

seems to work for me.
Just type Use then the name of the Class, select the proper class and press Tab.

I have encountered similar issues, but for me the problem was opening the editor and not having the vendor dependencies installed and hence they ware not indexed on startup, maybe try to Clear cache and reload ?

Also, can you verify that "files.exclude" setting does not include **/vendor/, since (Just tested and checked the code) if you have it VSCode will not report the folder inside the wokspace namespace, which is the way the client indexes the workspace, and if it does not "see" it it won't index it.

(Just validated the behaviour, with "files.exclude" - 57 files indexed; without - 1272)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ottopic picture ottopic  路  3Comments

muuvmuuv picture muuvmuuv  路  4Comments

bgreco picture bgreco  路  4Comments

vanasis picture vanasis  路  4Comments

dgunay picture dgunay  路  3Comments