Add a warning when disable auto-complete due to too many symbols

This commit is contained in:
Francesco Abbate 2020-11-17 12:34:46 +01:00
parent 4a8884ef70
commit 1634f68250
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ core.add_thread(function()
if symbols_count > max_symbols then
s = nil
doc.disable_symbols = true
core.status_view:show_message("!", style.accent,
"Too many symbols in document "..doc.filename..
": stopping auto-complete for this document according to config.max_symbols.")
collectgarbage('collect')
return {}
end