felixfbecker / vscode-php-intellisense

Advanced PHP IntelliSense for Visual Studio Code 🆚💬
MIT License
410 stars 88 forks source link

How is the extension installing the PHP Language server #473

Closed gauravmak closed 4 years ago

gauravmak commented 4 years ago

Maybe I am missing something very basic here. I checked the extension code to see how exactly it is specifying the dependency of the PHP language server but could not find it.

This line does specify the path to the PHP file but I could not find where composer install is even run before that to have PHP Language Server files into the vendor directory.

Can anyone please point that out? Thanks.

gszy commented 4 years ago

On the Releases page there are links to the compiled .vsix files that we can use to install the extension. If you unpack (unzip) one of these files, you’ll find that the vendor directory is already there. So I guess composer install is run as part of the release process. It may be this thing, but it may be some other maintainer’s script as well.

I checked the extension code to see how exactly it is specifying the dependency of the PHP language server but could not find it.

https://github.com/felixfbecker/vscode-php-intellisense/blob/v2.3.14/composer.json#L10

gauravmak commented 4 years ago

Thanks for your help @gszy I appreciate this.