ObliviousHarmony / vscode-php-codesniffer

A VS Code extension for integrating PHP_CodeSniffer.
https://marketplace.visualstudio.com/items?itemName=obliviousharmony.vscode-php-codesniffer
Other
38 stars 2 forks source link

Fixed "Ignore * for this line" Actions #20

Closed ObliviousHarmony closed 3 years ago

ObliviousHarmony commented 3 years ago

All Submissions:

Changes proposed in this Pull Request:

As a consequence of adding the supplemental code actions when providing actions, any Diagnostic without a fix action also had no ignore action. This moves the generation of these actions into the DiagnosticUpdater so they can be generated for all diagnostics.

Fixes #18

How to test the changes in this Pull Request:

  1. Prepare a file with an unfixable error
  2. The "Ignore * for this line" action should now be present