diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-15 20:04:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-15 20:04:00 +0800 |
commit | fcc64b070a4c3cf0af7470ae8587080d336fed73 (patch) | |
tree | bca5e569394b67f9ca803cdc09a5995d381e78fd /script/core | |
parent | 3d0aca53a30fa55637234685e7825600f42e48c0 (diff) | |
download | lua-language-server-fcc64b070a4c3cf0af7470ae8587080d336fed73.zip |
improve
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/noder.lua | 3 | ||||
-rw-r--r-- | script/core/searcher.lua | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 428cba26..9bb2b9b5 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -439,6 +439,9 @@ function m.compileNode(noders, source) if func.isGeneric then return end + if source.parent.type ~= 'funcargs' then + return + end local setmethod = func.parent -- guess `self` if setmethod and ( setmethod.type == 'setmethod' diff --git a/script/core/searcher.lua b/script/core/searcher.lua index 52b0b5ea..2b4b4caa 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -6,6 +6,7 @@ local ws = require 'workspace' local vm = require 'vm.vm' local globals = require 'vm.globals' local docs = require 'vm.docs' +local await = require 'await' local NONE = {'NONE'} local LAST = {'LAST'} @@ -185,7 +186,7 @@ local function crossSearch(status, uri, expect, mode) return end status.lock[uri] = true - --await.delay() + await.delay() if TRACE then log.debug('crossSearch', uri, expect) end |