diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-08 16:55:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-08 16:55:44 +0800 |
commit | ae8ce1e4d975d6aefc947a008ed8a82eec1312d3 (patch) | |
tree | 607249c561690e82f2dd0db01121472e957aa452 /script/core | |
parent | 96946f4022a45519fa4e512c652d322cf8232a73 (diff) | |
download | lua-language-server-ae8ce1e4d975d6aefc947a008ed8a82eec1312d3.zip |
cleanup
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/completion.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua index b7de7578..e67ca168 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -31,6 +31,8 @@ local DiagnosticModes = { local stackID = 0 local stacks = {} + +---@param callback async fun() local function stack(callback) stackID = stackID + 1 stacks[stackID] = callback @@ -41,6 +43,7 @@ local function clearStack() stacks = {} end +---@async local function resolveStack(id) local callback = stacks[id] if not callback then @@ -2118,6 +2121,7 @@ local function completion(uri, position, triggerCharacter) return results end +---@async local function resolve(id) local item = resolveStack(id) local cache = workspace.getCache 'completion' |