summaryrefslogtreecommitdiff
path: root/script/service
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-28 19:57:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-28 19:57:00 +0800
commit0c083272ea34af6705ad838d013fe2a3a85234a2 (patch)
treefd0386264e83263d99f343d72e67515d9b046a77 /script/service
parent457b73fd22d8ed34301a6a606636d3003735b4dc (diff)
downloadlua-language-server-0c083272ea34af6705ad838d013fe2a3a85234a2.zip
update locale
Diffstat (limited to 'script/service')
-rw-r--r--script/service/service.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/script/service/service.lua b/script/service/service.lua
index 443ee14d..20e07980 100644
--- a/script/service/service.lua
+++ b/script/service/service.lua
@@ -6,6 +6,7 @@ local proto = require 'proto'
local vm = require 'vm'
local util = require 'utility'
local files = require 'files'
+local lang = require 'language'
local m = {}
m.type = 'service'
@@ -156,11 +157,11 @@ function m.reportStatus()
else
info.text = '😺Lua'
end
- info.tooltip = ('已缓存文件:%d/%d\n内存占用:%.fM'):format(
- files.astCount,
- files.fileCount,
- collectgarbage('count') / 1000
- )
+ info.tooltip = lang.script('WINDOW_LUA_STATUS', {
+ ast = files.astCount,
+ max = files.fileCount,
+ mem = collectgarbage('count') / 1000,
+ })
proto.notify('$/status/report', info)
end)()
end