FSharp.Analyzers.SDK icon indicating copy to clipboard operation
FSharp.Analyzers.SDK copied to clipboard

Make fixes lazy

Open deviousasti opened this issue 5 years ago • 0 comments

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

deviousasti avatar Aug 17 '20 18:08 deviousasti