forked from qt-creator/qt-creator
Snippets: Show snippets after "corresponding" keywords.
In some cases snippets have a description. Due to the sorting this already places them after keywords. So this is just to be consistent for all cases.
This commit is contained in:
@@ -1125,8 +1125,8 @@ void CppCodeCompletion::globalCompletion(Scope *currentScope)
|
||||
foreach (ClassOrNamespace *b, usingBindings)
|
||||
completeNamespace(b);
|
||||
|
||||
addSnippets();
|
||||
addKeywords();
|
||||
addSnippets();
|
||||
qStableSort(m_completions.begin(), m_completions.end(), completionItemLessThan);
|
||||
|
||||
addMacros(QLatin1String("<configuration>"), context.snapshot());
|
||||
|
||||
Reference in New Issue
Block a user