We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b66760b commit bc27feaCopy full SHA for bc27fea
SCXcodeSwitchExpander/DVTTextCompletionController+SCXcodeSwitchExpander.m
@@ -64,8 +64,9 @@ - (BOOL)tryExpandingSwitchStatement
64
IDEIndexCompletionItem *item = [self _selectedCompletionItem];
65
66
// Fetch all symbols matching the autocomplete item type
67
- IDEIndexCollection *collection = [index allSymbolsMatchingName:item.displayType kind:nil];
68
-
+ NSString *symbolName = (item.displayType.length ? item.displayType : item.displayText);
+ IDEIndexCollection *collection = [index allSymbolsMatchingName:symbolName kind:nil];
69
+
70
// Find the first one of them that is a container
71
for(IDEIndexSymbol *symbol in collection.allObjects) {
72
0 commit comments