Merge pull request #91338 from Calinou/find-in-files-increase-file-threshold

Increase threshold for files per directory in editor Find in Files
This commit is contained in:
Rémi Verschelde 2024-05-07 16:49:43 +02:00
commit f9eb81e70e
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -222,7 +222,9 @@ void FindInFiles::_scan_dir(const String &path, PackedStringArray &out_folders,
dir->list_dir_begin();
for (int i = 0; i < 1000; ++i) {
// Limit to 100,000 iterations to avoid an infinite loop just in case
// (this technically limits results to 100,000 files per folder).
for (int i = 0; i < 100'000; ++i) {
String file = dir->get_next();
if (file.is_empty()) {