简体   繁体   中英

How to enable a Roslyn analyzer or refactoring that was automatically disabled due to crashes?

如何启用Roslyn分析器或之前因崩溃而自动禁用的重构?

When an analyzer crashes, we don't disable it. We catch and log the exception and let it continue because it could have just not have understood some ill formed tree.

When a code fixer or code refactoring crashes, we disable the fixer but pop up an info bar on top of the editor that lets you reenable the fixer. If you dismiss that fixer however, there's no way to enable it again for that session (you'd have to restart VS to get it back).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM