Roslyn Code Action: How to check if preview or real execution?
问题 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 actions are executed once against a dummy workspace as a "preview" option, so that you can see the actual changes before you click the action and execute it against the real workspace. Now I am dealing with some things Roslyn can't really do (yet), so I am doing some changes via EnvDTE . I know, it's bad, but I couldn't find another