diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-06-05 18:09:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2024-06-05 18:09:43 +0800 |
commit | 9498df4eee86545ac29df2ff3d701e57448585ad (patch) | |
tree | f7fe91ca151aff8b5eeebe803014d2054a6075e5 | |
parent | 39b078942014a3e022ef5fcb953e9e58b8c5dbec (diff) | |
download | lua-language-server-9498df4eee86545ac29df2ff3d701e57448585ad.zip |
获取工作区符号改为同步
-rw-r--r-- | script/core/workspace-symbol.lua | 6 | ||||
-rw-r--r-- | script/provider/markdown.lua | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/script/core/workspace-symbol.lua b/script/core/workspace-symbol.lua index a41cfc1d..f831aa03 100644 --- a/script/core/workspace-symbol.lua +++ b/script/core/workspace-symbol.lua @@ -55,7 +55,6 @@ local function searchFile(uri, key, results) end) end ----@async ---@param key string ---@param suri? uri ---@param results table[] @@ -88,12 +87,10 @@ local function searchGlobalAndClass(key, suri, results) source = set, } end - await.delay() end end end ----@async ---@param key string ---@param suri? uri ---@param results table[] @@ -137,7 +134,6 @@ local function searchClassField(key, suri, results) end) end ----@async ---@param key string ---@param suri? uri ---@param results table[] @@ -147,11 +143,9 @@ local function searchWords(key, suri, results) if #results > 1000 then break end - await.delay() end end ----@async ---@param key string ---@param suri? uri ---@param includeWords? boolean diff --git a/script/provider/markdown.lua b/script/provider/markdown.lua index b5478567..07c18ef9 100644 --- a/script/provider/markdown.lua +++ b/script/provider/markdown.lua @@ -8,7 +8,6 @@ mt.__name = 'markdown' mt._splitLine = false ----@async ---Converts `[mySymbol](lua://mySymbol)` into a link that points to the origin of `mySymbol`. ---@param txt string local function processSymbolReferences(txt) |