From 0dafb45dbbbd57d8f0938dfa7dc764884b1de388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 10 Feb 2023 14:32:45 +0800 Subject: completion: don't show loading process resolve #1705 --- script/provider/provider.lua | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'script') 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 _ = progress.create(uri, lang.script.WINDOW_PROCESSING_COMPLETION, 0.5) --log.info(util.dump(params)) -- cgit v1.2.3