diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-01 02:46:55 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-01 02:46:55 +0800 |
commit | a22c1b083cc0336c21a0ef5c153ecd6cd36b7d6e (patch) | |
tree | fd2c80f64cd0616571a1a8967b081b10104f4f10 /script-beta/core/diagnostics/undefined-doc-name.lua | |
parent | bb2e5b923aac06d8fa42b6df3c609f43b8b6886c (diff) | |
download | lua-language-server-a22c1b083cc0336c21a0ef5c153ecd6cd36b7d6e.zip |
自动完成支持 doc.type
Diffstat (limited to 'script-beta/core/diagnostics/undefined-doc-name.lua')
-rw-r--r-- | script-beta/core/diagnostics/undefined-doc-name.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/script-beta/core/diagnostics/undefined-doc-name.lua b/script-beta/core/diagnostics/undefined-doc-name.lua index 8e832a2d..ba5e0a69 100644 --- a/script-beta/core/diagnostics/undefined-doc-name.lua +++ b/script-beta/core/diagnostics/undefined-doc-name.lua @@ -4,23 +4,6 @@ local lang = require 'language' local define = require 'proto.define' local vm = require 'vm' --- TODO -local builtin = { - ['any'] = true, - ['nil'] = true, - ['void'] = true, - ['boolean'] = true, - ['number'] = true, - ['integer'] = true, - ['thread'] = true, - ['table'] = true, - ['file'] = true, - ['string'] = true, - ['userdata'] = true, - ['lightuserdata'] = true, - ['function'] = true, -} - return function (uri, callback) local state = files.getAst(uri) if not state then @@ -41,9 +24,6 @@ return function (uri, callback) return end local name = source[1] - if builtin[name] then - return - end if cache[name] == nil then cache[name] = false local docs = vm.getDocTypes(name) |