You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support SuggestedCorrections property on DiagnosticRecord for script based rules (#1000)
* Populate SuggestedCorrections when using scriptule and make it public for easier construction in PowerShell
* add documentation and test
* use [Type]::new() constructor instead of new-object
* Revert "use [Type]::new() constructor instead of new-object"
Reason: this was only introduced in PowerShell v5 and therefore fails
the PS v4 build and we should not give examples that do not work on any
supported version
This reverts commit aa90ea3.
Optionally, since version 1.17.0, a `SuggestedCorrections` property of type `IEnumerable<CorrectionExtent>` can also be added in script rules but care must be taken that the type is correct, an example is:
0 commit comments