mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CodeCompletion] Don't add inner results on non-declarations
We were getting some ridiculous completions that were just two independentdcompletions concatenated together. rdar://problem/22945376
This commit is contained in:
@@ -875,7 +875,8 @@ static void transformAndForwardResults(
|
||||
|
||||
organizer.groupAndSort(options);
|
||||
|
||||
if ((options.addInnerResults || options.addInnerOperators) && exactMatch) {
|
||||
if ((options.addInnerResults || options.addInnerOperators) &&
|
||||
exactMatch && exactMatch->getKind() == Completion::Declaration) {
|
||||
std::vector<Completion *> innerResults;
|
||||
bool hasDot = false;
|
||||
bool hasQDot = false;
|
||||
|
||||
Reference in New Issue
Block a user