summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-02-10 14:32:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-02-10 14:32:45 +0800
commit0dafb45dbbbd57d8f0938dfa7dc764884b1de388 (patch)
treece9fa02d525805d0cd305423c0a28d8118d07e30 /script
parentc55a4b6bf75d9a6cf1afef46282639ff11c368c7 (diff)
downloadlua-language-server-0dafb45dbbbd57d8f0938dfa7dc764884b1de388.zip
completion: don't show loading process
resolve #1705
Diffstat (limited to 'script')
-rw-r--r--script/provider/provider.lua14
1 files changed, 1 insertions, 13 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 7d87dee9..2e6d8f75 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -597,19 +597,7 @@ m.register 'textDocument/completion' {
function (params)
local uri = files.getRealUri(params.textDocument.uri)
if not workspace.isReady(uri) then
- local count, max = workspace.getLoadingProcess(uri)
- return {
- {
- label = lang.script('HOVER_WS_LOADING', count, max),
- textEdit = {
- range = {
- start = params.position,
- ['end'] = params.position,
- },
- newText = '',
- },
- }
- }
+ return nil
end
local _ <close> = progress.create(uri, lang.script.WINDOW_PROCESSING_COMPLETION, 0.5)
--log.info(util.dump(params))