summaryrefslogtreecommitdiff
path: root/script-beta/core/completion.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-29 11:25:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-29 11:25:16 +0800
commit049eaa1446d8b53cef14ec3a72f315f162ead2bc (patch)
tree81a711fe508573c0f40585063f340ac09b4f9bee /script-beta/core/completion.lua
parent5cd2e0110dfe2d1bc8c141af74baa53dab448c66 (diff)
downloadlua-language-server-049eaa1446d8b53cef14ec3a72f315f162ead2bc.zip
增加翻译
Diffstat (limited to 'script-beta/core/completion.lua')
-rw-r--r--script-beta/core/completion.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/script-beta/core/completion.lua b/script-beta/core/completion.lua
index fd27f535..2e1af2aa 100644
--- a/script-beta/core/completion.lua
+++ b/script-beta/core/completion.lua
@@ -19,6 +19,7 @@ local keyWordMap = require 'core.keyword'
local workspace = require 'workspace'
local furi = require 'file-uri'
local rpath = require 'workspace.require-path'
+local lang = require 'language'
local stackID = 0
local stacks = {}
@@ -593,11 +594,10 @@ local function checkUri(ast, text, offset, results)
}
}
end
- -- TODO 翻译
- collect[info.expect][#collect[info.expect]+1] = ([=[* [%s](%s) (假设搜索路径包含 `%s`)]=]):format(
+ collect[info.expect][#collect[info.expect]+1] = ([=[* [%s](%s) %s]=]):format(
path,
uri,
- info.searcher
+ lang.script('HOVER_USE_LUA_PATH', info.searcher)
)
end
end
@@ -620,7 +620,6 @@ local function checkUri(ast, text, offset, results)
}
}
end
- -- TODO 翻译
collect[path][#collect[path]+1] = ([=[[%s](%s)]=]):format(
path,
uri