Xcode 9.3: Applying quick fix in main editor changes assistant editor

Originator:akaralar
Number:rdar://39756080 Date Originated:26-Apr-2018 04:26 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 9.3 (9E145)
Classification:UI/Usability Reproducible:Always
 
Summary:
When code is being edited in the main editor, with assistant editor open and showing another file, if there are errors in the main editor that can be fixed by applying fix all issues (shortcut: cmd opt ctrl f) and the fix is applied, the assistant editor changes to the same file as the main editor.


Steps to Reproduce:
1- Open any project and show assistant editor (shortcut: cmd opt enter)
2- Make sure different files are open in the main editor and the assistant editor.
3- In the main editor, write any code that produces an error fixable by Xcode. Example: Make a variable in any function, and make sure that variable is not used. ie let dummy = 0. Xcode will complain about the variable not being used and can apply a quick fix.
4- Apply quick fix either via the menu bar from Editor -> Fix All Issues or the shortcut, cmd opt ctrl f.


Expected Results:
The expectation is that the fix fill be applied in the main editor and the assistant editor will remain unchanged. The same goes the other way, when fix is applied in the assistant editor, the main editor shouldn’t change.


Actual Results:
Although the fix is applied in the main editor, assistant editor changes to the same file as the main editor. The same happens the other way so that when quick fix is applied in the assistant editor, the main editor changes to the same file shown in the assistant editor.


Version:
Xcode 9.3 (9E145)

Notes:

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!