diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-17 20:58:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-17 20:58:04 +0800 |
commit | ddb86f9c712bd371f4ee129ecf068ba197e74fc4 (patch) | |
tree | 7f8fa8875812be96fd4c5737671124e21b70fed5 /script | |
parent | 08b3a7316a4ddcb163c408378fde89a0751d6081 (diff) | |
download | lua-language-server-ddb86f9c712bd371f4ee129ecf068ba197e74fc4.zip |
fix
Diffstat (limited to 'script')
-rw-r--r-- | script/core/noder.lua | 2 | ||||
-rw-r--r-- | script/core/searcher.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index a7f71d3e..b853497e 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -1000,6 +1000,7 @@ function m.compileNodes(source) return noders end log.debug('compileNodes:', guide.getUri(root)) + collector.dropUri(guide.getUri(root)) guide.eachSource(root, function (src) m.pushSource(noders, src) m.compileNode(noders, src) @@ -1011,7 +1012,6 @@ end files.watch(function (ev, uri) uri = files.asKey(uri) if ev == 'update' then - collector.dropUri(uri) local state = files.getState(uri) m.compileNodes(state.ast) end diff --git a/script/core/searcher.lua b/script/core/searcher.lua index b7c86262..dd4e4730 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -185,7 +185,7 @@ local function crossSearch(status, uri, expect, mode, sourceUri) return end status.lock[uri] = true - await.delay() + --await.delay() if TRACE then log.debug('crossSearch', uri, expect) end |