diff options
Diffstat (limited to 'script-beta/files.lua')
-rw-r--r-- | script-beta/files.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/files.lua b/script-beta/files.lua index cfe95aeb..324fb11d 100644 --- a/script-beta/files.lua +++ b/script-beta/files.lua @@ -177,6 +177,9 @@ function m.getAst(uri) uri = uri:lower() end local file = m.fileMap[uri] + if not file then + return nil + end if #file.text >= config.config.workspace.maxPreload * 1000 then if not m.notifyCache['maxPreload'] then m.notifyCache['maxPreload'] = {} |