SanderRonde / phpstan-vscode

PHPStan plugin for VSCode
https://marketplace.visualstudio.com/items?itemName=SanderRonde.phpstan-vscode
MIT License
40 stars 9 forks source link

Allows to scan for complete directory #9

Closed edafonseca closed 2 years ago

edafonseca commented 2 years ago

Hello,

Is there a way to scan a whole directory to generate "Problems" for all project ?

Thanks

SanderRonde commented 2 years ago

That should work fine if your phpstan.neon file includes the directory.

Or do you mean having a dedicated "scan this folder" command like the "scan current file" command?

edafonseca commented 2 years ago

This is working great when saving a file, but is it possible to lint all project ? In actions, I only get "Scan current file for errors".

Actually, what I am looking for is to get in Problems tab the list of all project phpstan errors.

Thanks

SanderRonde commented 2 years ago

Ah interesting idea. I'll start working on making that possible :)

edafonseca commented 2 years ago

Thanks a lot !! :)

SanderRonde commented 2 years ago

Done :) should be live in the newest version (2.2.0)

edafonseca commented 2 years ago

Awesome !

However , here are some errors. When I run "check for project errors" :

Am I missing something ?

Thanks

SanderRonde commented 2 years ago

Ah looks like stuff is a bit broken then, will unpublish it while I investigate

SanderRonde commented 2 years ago

I just published a pre-release version (version 2.2.2) of the extension where I re-introduced the changes (this time I'm pretty sure I fixed the bugs). Could you give it a test and let me know if it works? Just click on the extension in your extensions sidebar and on the detail-page click on "Switch to Pre-Release Version".

edafonseca commented 2 years ago

Awesome ! You now have the best phpstan extension on vscode 😍.

I have tried the 2.2.2 version, all good until now. I will keep going with it and let you know if I see some problems.

Thanks again :)

SanderRonde commented 2 years ago

Thanks for the kind words! Good to hear it all works, I'll publish it to the non-pre-release channel then.