Skip to content

Commit 0dafb45

Browse files
committed
completion: don't show loading process
resolve #1705
1 parent c55a4b6 commit 0dafb45

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# changelog
22

33
## 3.6.11
4+
* `CHG` completion: don't show loading process
45
* `FIX` [#1886]
56

67
[#1886]: https://github.com/LuaLS/lua-language-server/issues/1886

script/provider/provider.lua

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -597,19 +597,7 @@ m.register 'textDocument/completion' {
597597
function (params)
598598
local uri = files.getRealUri(params.textDocument.uri)
599599
if not workspace.isReady(uri) then
600-
local count, max = workspace.getLoadingProcess(uri)
601-
return {
602-
{
603-
label = lang.script('HOVER_WS_LOADING', count, max),
604-
textEdit = {
605-
range = {
606-
start = params.position,
607-
['end'] = params.position,
608-
},
609-
newText = '',
610-
},
611-
}
612-
}
600+
return nil
613601
end
614602
local _ <close> = progress.create(uri, lang.script.WINDOW_PROCESSING_COMPLETION, 0.5)
615603
--log.info(util.dump(params))

0 commit comments

Comments
 (0)