SanderRonde / phpstan-vscode

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

Provide quick fix or autocompletion to ignore errors #25

Closed FrankySnow closed 1 year ago

FrankySnow commented 1 year ago

Hi, when I encounter a PHPStan error that I want to ignore : image I would like VS Code to add // @phpstan-ignore-next-line or // @phpstan-ignore-line for me, but there are "No quick fixes available".

It would be cool if the extension provided such "quick fixes", like ESLint for JS/TS : image

Similarly, the extension could provide an autocompletion like Phan : image

Thanks in advance for considering this !

SanderRonde commented 1 year ago

That's actually a very good idea! Will implement this when I've got the time. Thanks for the suggestion.