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
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)
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 thewokspacenamespace, 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)