Snippets don't work in interface extensions for "Class Interface Methods" scope.

Originator:random4444
Number:rdar://16891014 Date Originated:12-May-2014 06:43 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 5.1 (5B130a)
Classification:Other Bug Reproducible:Always
 
Summary:
The only way to get code snippets to auto-complete inside class interface extensions (in .m files) is to set completion scope to "all". If I set completion scope to "Class Interface Methods" then the code snippet does not autocomplete inside @interface declarations unless they are in a .h file.

Steps to Reproduce:
1. Add a code snippet. Perhaps for "@property (nonatomic) <#var#>;"
 (I often do this by dragging from actual code into snippet library, then modifying as needed.)
2. Set Platform -> All and Language -> Objective-C.
3. Give a completion shortcut ("ppp" or something unique)
4. Select completion scope of "Class Interface Methods". 
5. Click 'Done'.
6. Go to .m file and add a @interface section (like "@interface BNRRegionDrawingTool ()

@end"
7. In the middle, start typing your shortcut. 
8. Note that autocomplete does NOT show the snippet. 
9. Try all other completion scopes for your snippet. Note that the only one that works is "all". 

Expected Results:
Class Interface Method snippets should autocomplete inside any @interface section, including inside .m files. 

Actual Results:
The code snippet does not autocomplete.

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!