summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-30 16:12:46 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-30 16:12:46 +0800
commita48139e5dd7e7a6e9e3bd00a41334a1e66d1a227 (patch)
treeb363a6a733280839bb3d2170e26668143106ee9f /script/provider
parentf0f9a4ea4509dfb764a5dfebd5e86e679c8f4b03 (diff)
downloadlua-language-server-a48139e5dd7e7a6e9e3bd00a41334a1e66d1a227.zip
update
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 51a10b19..23dd6e11 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -258,7 +258,7 @@ m.register 'textDocument/hover' {
local doc = params.textDocument
local uri = files.getRealUri(doc.uri)
if not workspace.isReady() then
- local count, max = workspace.getLoadProcess()
+ local count, max = workspace.getLoadingProcess(uri)
return {
contents = {
value = lang.script('HOVER_WS_LOADING', count, max),
@@ -471,7 +471,7 @@ m.register 'textDocument/completion' {
function (params)
local uri = files.getRealUri(params.textDocument.uri)
if not workspace.isReady() then
- local count, max = workspace.getLoadProcess()
+ local count, max = workspace.getLoadingProcess(uri)
return {
{
label = lang.script('HOVER_WS_LOADING', count, max),textEdit = {