FSharp.Analyzers.SDK
FSharp.Analyzers.SDK copied to clipboard
Make fixes lazy
Analyzers will produce a number of warnings, but only when a code-fixes request (from the suggestions API) is made do we actually need a list of fixes.
In the interest of performance, we should try to change the fixes from Fix list to Lazy<Fix list>.
This is already how suggestions in FSharpLint are implemented. https://github.com/fsprojects/FSharpLint/blob/f58665fc8c48461ad3d486bf608e4233012a94c0/src/FSharpLint.Core/Framework/Suggestion.fs#L28