summaryrefslogtreecommitdiff
path: root/script-beta
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta')
-rw-r--r--script-beta/core/hover/label.lua3
-rw-r--r--script-beta/core/hover/table.lua3
2 files changed, 3 insertions, 3 deletions
diff --git a/script-beta/core/hover/label.lua b/script-beta/core/hover/label.lua
index b96421b1..24779c41 100644
--- a/script-beta/core/hover/label.lua
+++ b/script-beta/core/hover/label.lua
@@ -36,8 +36,7 @@ local function asDocTypeName(source)
end
if doc.type == 'doc.alias.name' then
local extends = doc.parent.extends
- -- TODO
- return '展开为 ' .. vm.getInferType(extends)
+ return lang.script('HOVER_EXTENDS', vm.getInferType(extends))
end
end
end
diff --git a/script-beta/core/hover/table.lua b/script-beta/core/hover/table.lua
index 0da2a18b..145f3c08 100644
--- a/script-beta/core/hover/table.lua
+++ b/script-beta/core/hover/table.lua
@@ -2,6 +2,7 @@ local vm = require 'vm'
local util = require 'utility'
local guide = require 'parser.guide'
local config = require 'config'
+local lang = require 'language'
local function getKey(src)
if src.type == 'library' then
@@ -275,9 +276,9 @@ return function (source)
else
result = buildAsHash(classes, literals)
end
- -- TODO
if timeUp then
result = '\n--出于性能考虑,已禁用了部分类型推断。\n' .. result
+ result = ('\n--%s\n%s'):format(lang.script.HOVER_TABLE_TIME_UP, result)
end
return result
end