summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.md1
-rw-r--r--script/provider/provider.lua14
2 files changed, 2 insertions, 13 deletions
diff --git a/changelog.md b/changelog.md
index b4aaf6db..2c45919d 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,6 +1,7 @@
# changelog
## 3.6.11
+* `CHG` completion: don't show loading process
* `FIX` [#1886]
[#1886]: https://github.com/LuaLS/lua-language-server/issues/1886
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))