Open odahcam opened 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.
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. 🙂
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
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.