diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-29 17:55:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-29 17:55:48 +0800 |
commit | 9f9eb3b6d98acad2fd0ea229612ff07903d8b0e9 (patch) | |
tree | d3e588c9da2dc6fc1bbd88b0a9d339243482467c | |
parent | 3a2f475b5a3c61241538602f2531b82f3f1fa395 (diff) | |
download | lua-language-server-9f9eb3b6d98acad2fd0ea229612ff07903d8b0e9.zip |
clean up code
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | script/parser/guide.lua | 14 |
2 files changed, 7 insertions, 8 deletions
diff --git a/changelog.md b/changelog.md index 76681f22..b49bd7d2 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,7 @@ # changelog ## 1.8.1 +* `CHG` performance optimization * `FIX` telemetry: connect failed caused not working ## 1.8.0 diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 54050c84..27e5a420 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -27,6 +27,8 @@ local function logWarn(...) log.warn(...) end +---@class guide +---@field debugMode boolean local m = {} m.ANY = {"<ANY>"} @@ -2367,10 +2369,6 @@ function m.checkSameSimpleName(ref, sm) return true end - if sm == m.ANY_DEF and m.isSet(ref) then - return true - end - if m.getSimpleName(ref) == sm then return true end @@ -2515,10 +2513,10 @@ function m.searchSameFields(status, simple, mode) status.interface.pulse() end end - if status.share.count >= 100000 then - logWarn('Count too large!') - break - end + --if status.share.count >= 100000 then + -- logWarn('Count too large!') + -- break + --end m.checkSameSimple(status, simple, obj, start, force, mode, pushQueue) if max >= 10000 then logWarn('Queue too large!') |