diff options
-rw-r--r-- | changelog.md | 3 | ||||
-rw-r--r-- | script/core/searcher.lua | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/changelog.md b/changelog.md index b3593471..54369a8e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # changelog +## 2.3.5 +* `FIX` completion: may not find results + ## 2.3.4 `2021-8-6` * `CHG` improve performance diff --git a/script/core/searcher.lua b/script/core/searcher.lua index 6ea15d97..8f5af96b 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -361,8 +361,8 @@ local uriMapMT = {__index = function (self, uri) end} function m.searchRefsByID(status, suri, expect, mode) - local ast = files.getState(suri) - if not ast then + local state = files.getState(suri) + if not state then return end local searchStep @@ -380,6 +380,8 @@ function m.searchRefsByID(status, suri, expect, mode) local elockMap = setmetatable({}, uriMapMT) local ecallMap = setmetatable({}, uriMapMT) + compileAllNodes(state.ast) + local function lockExpanding(elock, ecall, id, field) if not field then field = '' |