TysonAndre / vscode-php-phan

Phan - PHP Static Analysis for VS Code
Other
24 stars 4 forks source link

Spawn per workspace #29

Open odahcam opened 6 years ago

odahcam commented 6 years ago

The extension should look for a .phan/config.php inside each opened workspace instead of analysing only one folder.

The multi-project analysis is a very important feature, e.g.: I can't configure just one path in a company we work with 5+ projects at the same time.

TysonAndre commented 6 years ago

You can manually pass a list of directories to Phan.analyzedDirectory instead of a single string in the latest releases.

I agree that there should be an option like that to automatically start/stop based on open workspaces.

odahcam commented 6 years ago

That's great, but like other plugins this is a common must have feature.

I'll try to give some help and maybe create a PR for that when I get the time. 🙂

TysonAndre commented 5 years ago

If the phan configuration is part of a project's workspace settings, it may be useful to specify that it's in ${whateverTheNameOfWorkspaceFolderIs}/subdirectory-with-phan-config (definitely not with that syntax). I haven't worked with workspace settings yet. (and that might be a problem if user settings had other folders)

https://github.com/Microsoft/vscode issue 2809 mentions that environment variables aren't possible yet in workspace settings