ikappas / vscode-composer

PHP Composer for Visual Studio Code
MIT License
24 stars 7 forks source link

Set Composer working directory #2

Closed mexcoder closed 6 years ago

mexcoder commented 7 years ago

will be great to add a config option for changing the composer working directory to an arbitrary folder

binary64 commented 6 years ago

This would be amazing! I have a large git tree that has many "local" roots for composer.json

The way I tried to get it to work was opened a file within the root of my wanted composer.json, F1 > composer: install > but it complains about no composer.json in the topmost root of the vscode folder.

ikappas commented 6 years ago

@binary64 I've planned to implement this as a configuration setting

binary64 commented 6 years ago

Hrm, won't that cost more work to the user than Terminal > cd to/the/subproject > composer install ? Or am I missing something?

It could be strongly assumed the .php file I have focused is part of the project I wish to operate on.

ikappas commented 6 years ago

@mexcoder, @binary64 This has been implemented in the latest develop branch. See more details at README.md

@binary64 Please take a look at the aforementioned README and please open a new ticket if your use case differs.