Always show type when hovering over a variable or option-clicking it (Both editing and for debugging)

Originator:steipete
Number:rdar://32768754 Date Originated:14-Jun-2017 06:58 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 9b1
Classification:Feature (New) Reproducible:Always
 
Summary:
With using more __auto_type or auto in C++/Objective-C always showing the type in the tooltip would be really really useful. (See https://cl.ly/1c3f13410H2y) Right now it’s shown sometimes, but not for all types - and only while debugging, not when I type the code. This should work both when the app is running and when it’s NOT running (Swift can do option-click to infer a type)

Steps to Reproduce:
Write some code with auto or __auto_type and run it + hover.
Observe tooltips of mixed quality in debug mode
Observe no tooltops when app is not running.

Expected Results:
Improved tooltip for debugging and adding tooltip for editing.

Actual Results:
See that one: https://cl.ly/453d3Q0A1y38 - is it a URL? A String? 

Version:
Xcode 9b1

Notes:
This is probably something that should be internally handled as two radas, one to improve debug experience and one for adding type infer for the edit experience.

See https://pspdfkit.com/blog/2017/even-swiftier-objective-c/ for our var/let macros.

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!