Editor Extensions should be able to prompt for user approval of changes

Originator:bkobilansky
Number:rdar://26850267 Date Originated:6/16/2016
Status:Open Resolved:
Product:Xcode Product Version:8
Classification:Enhancement Reproducible:Always
 
Summary:
Source Editor extensions currently modify the XCSourceTextBuffer instantly. For certain types of changes (Code generation) it would be useful to show a dialog similar to the Xcode code migration utility.

This would allow users to examine changes to the buffer and approve or modify them further before updating.

Steps to Reproduce:
Create an editor extension that generates code
Install extension
Run the editor extension via the 'Editor' menu

Expected Results:
User is shown changes in diff window
User is given Ok/Cancel choice to approve changes
If user selects cancel, no changes are made
If user selects Ok, changes are made

Actual Results:
Any changes to the buffer are committed instantly, without user approval

Version:
8.0 beta (8S128d)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!