Add a warning when disable auto-complete due to too many symbols
This commit is contained in:
parent
4a8884ef70
commit
1634f68250
|
@ -42,6 +42,9 @@ core.add_thread(function()
|
||||||
if symbols_count > max_symbols then
|
if symbols_count > max_symbols then
|
||||||
s = nil
|
s = nil
|
||||||
doc.disable_symbols = true
|
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')
|
collectgarbage('collect')
|
||||||
return {}
|
return {}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue