limit the number of workspace symbols to 100 even if you have entered a search string

This commit is contained in:
Martin Lippert
2018-11-22 15:09:01 +01:00
parent 8654475b83
commit 82e81e81a4

View File

@@ -276,7 +276,8 @@ public class SpringIndexer {
public List<SymbolInformation> getAllSymbols(String query) {
if (query != null && query.length() > 0) {
return searchMatchingSymbols(this.symbols, query);
List<SymbolInformation> foundSymbols = searchMatchingSymbols(this.symbols, query);
return foundSymbols.subList(0, Math.min(50, foundSymbols.size()));
} else {
return this.symbols.subList(0, Math.min(50, this.symbols.size()));
}