Stop scanning project file when a maximum limit is reached

To avoid excessive memory usage when opening in a directory with too many files.

Introduce the config variable config.max_project_files to choose the limit.

The mechanism introduced avoid using excessive memory but it fails to
let user access all the files in the directory. A better implementation
should not impose any limits but read each subdirectory on-demand, only
as they are expanded in the tree-view.
This commit is contained in:
Francesco Abbate
2020-11-16 18:12:55 +01:00
parent 7a856be6e4
commit 16e6a6db9d
2 changed files with 16 additions and 3 deletions
+1
View File
@@ -17,5 +17,6 @@ config.indent_size = 2
config.tab_type = "soft"
config.line_limit = 80
config.max_symbols = 2000
config.max_project_files = 2000
return config