When choosing option from the autocomplete it will prepend to the current selection instead of replacing it

Originator:Ido.Monzon
Number:rdar://45419855 Date Originated:October 20 2018
Status:Open Resolved:No
Product:xCode Product Version:10.0 (10A255)
Classification:Bug Reproducible:Always
 
Summary:
When selecting some code and press control+space, it will show up the autocomplete, choosing option from the autocomplete prepending the selected option to the current selection instead of replacing it.

Steps to Reproduce:
Select some code, such as `UIColor.*blue*` (** is the selection), then, press control+space and choose for example `red` from the autocomplete.
The result will be `UIColor.redblue`, and no, I don't want that.

Expected Results:
If you taking the above example, it should be `UIColor.red`.

Actual Results:
If you taking the above example, it will be `UIColor.redblue`.

Version/Build:
10.0 (10A255)

Configuration:
MacBook Pro (15-inch, 2017)
macOS ‏10.14 ‏(18A391‏)

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!