Roslyn Code Action: How to check if preview or real execution?

前端 未结 2 461
醉话见心
醉话见心 2020-12-21 14:35

I am currently experimenting with Roslyn and Code Actions, more specific Code Refactorings. It feels kind of easy, but I have a difficulty I cannot solve.

Code actio

2条回答
  •  太阳男子
    2020-12-21 14:42

    You can choose to override ComputePreviewOperationsAsync to have different behavior for Previews from regular code.

提交回复
热议问题