diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-02-10 14:32:45 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-02-10 14:32:45 +0800 |
commit | 0dafb45dbbbd57d8f0938dfa7dc764884b1de388 (patch) | |
tree | ce9fa02d525805d0cd305423c0a28d8118d07e30 | |
parent | c55a4b6bf75d9a6cf1afef46282639ff11c368c7 (diff) | |
download | lua-language-server-0dafb45dbbbd57d8f0938dfa7dc764884b1de388.zip |
completion: don't show loading process
resolve #1705
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | script/provider/provider.lua | 14 |
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)) |