Closed vasily-kirichenko closed 6 years ago
Shouldn't this emit that the name of System.DateTime.Now
can be simplified instead?
no, that’s the work of a different analyzer.
this, and many other bugs, has been fixed in https://github.com/Microsoft/visualfsharp/pull/3803
@vasily-kirichenko I meant that this analyzer shouldn't run, and the other one should. I would think that if you open
something, and call a method with the FQN including that open
ed thing, it would not emit this suggestion but instead allow the other analyzer to emit a "name can be simplified" suggestion.
@EBrown8534 The Simplify Name analyzer is off by default because it's expensive and bogs down the editor due to how document analyzers are run by Roslyn under the covers. You can see a breakdown of what happens in the editor here: https://github.com/dotnet/roslyn/issues/19347#issuecomment-310225540
@cartermp Ah, thanks! That clears things up for me.
Fixed by #3803