-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDE Code Fixes available via Error Window. #29268
Comments
To return to this discussion/item Adding the following summary of a desired experience from David Pugh It would be really nice if I could select a bunch of errors (RS0016 … not part of declared API) from the error list and attempt to quick fix them all. The implementation would:
Steps 1 & 2 should be trivial, but I don’t know about 3 & 4 (including determining whether a particular quick fix is applicable to a specific error code). A clunky/slow solution (e.g. open/navigate to the location, use the quick fix tagger to determine the applicable fixes, iterate through the tags to find an appropriate fix, apply the fix) would be acceptable here. Even if processing 100 errors takes 10 minutes, it is still better than me performing 100 repetitive actions. If 3 & 4 are doable with the current APIs, it should be possible to do this as an extension. Experience thoughts
|
It's up to the individual diagnostic if it supports 'fix all'. |
The approach from @markw-t would be difficult to present, since each diagnostic can have more than one applicable fix, and not all diagnostics have the same fix. I would prefer an approach like this:
|
@sharwell your approach definitely has some advantages - and as an added bonus, the error list already has the grouping features needed to make No1 happen. Would just need a way to surface the fixers per grouping as you imply at No3 . Or maybe it could be as simple as a right click to fix. In my imagination my earlier approach was simply to use lightbulbs on each row as the preview opportunity, just inlining the preview one by one. But your way might be more efficient, at least reducing the "per diagnostic kind" load by grouping. |
Closing out. This would need to be driven by platform if they want to support this. |
It would be good to have code fixes available via the Error Window.
Eg Right Click in over and Error in the Error Window,
and have a sub menu
Code Fixes -> Escape Keyword
.The text was updated successfully, but these errors were encountered: