diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-02 19:25:37 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-02 19:25:37 +0800 |
commit | 36a5c10b00160c85a8c29170b5d5de8b27b4a5c9 (patch) | |
tree | f6db7d3d69bc24fecf16f3a3439d489dc5c43bf9 /script/library.lua | |
parent | c16264eac3b25f6f2bce14b0504071787bd2bc54 (diff) | |
download | lua-language-server-36a5c10b00160c85a8c29170b5d5de8b27b4a5c9.zip |
mark async
Diffstat (limited to 'script/library.lua')
-rw-r--r-- | script/library.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/script/library.lua b/script/library.lua index 943e6d2d..81242a91 100644 --- a/script/library.lua +++ b/script/library.lua @@ -341,6 +341,7 @@ local function apply3rd(cfg, onlyMemory) end local hasAsked +---@async local function askFor3rd(cfg) hasAsked = true local yes1 = lang.script.WINDOW_APPLY_WHIT_SETTING @@ -395,7 +396,7 @@ local function check3rdByWords(text, configs) if hasAsked then return end - await.call(function () + await.call(function () ---@async for _, cfg in ipairs(configs) do if cfg.words then for _, word in ipairs(cfg.words) do @@ -419,7 +420,7 @@ local function check3rdByFileName(uri, configs) if not path then return end - await.call(function () + await.call(function () ---@async for _, cfg in ipairs(configs) do if cfg.files then for _, filename in ipairs(cfg.files) do |