summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--locale/en-us/script.lua1
-rw-r--r--locale/zh-cn/script.lua1
-rw-r--r--script/service/service.lua1
3 files changed, 3 insertions, 0 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index e4946b6b..29e29a44 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -208,6 +208,7 @@ WINDOW_DONT_SHOW_AGAIN = "Don't show again"
WINDOW_DELAY_WS_DIAGNOSTIC = 'Idle time diagnosis (delay {} seconds)'
WINDOW_DISABLE_DIAGNOSTIC = 'Disable workspace diagnostics'
WINDOW_LUA_STATUS = [[
+Workspace : {ws}
Cached files: {ast}/{max}
Memory usage: {mem:.f}M
]]
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index 520c77eb..5a125fe0 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -207,6 +207,7 @@ WINDOW_DONT_SHOW_AGAIN = '不再提示'
WINDOW_DELAY_WS_DIAGNOSTIC = '空闲时诊断(延迟{}秒)'
WINDOW_DISABLE_DIAGNOSTIC = '禁用工作区诊断'
WINDOW_LUA_STATUS = [[
+工作区:{ws}
已缓存文件:{ast}/{max}
内存占用:{mem:.f}M
]]
diff --git a/script/service/service.lua b/script/service/service.lua
index c7ca15bf..450440a6 100644
--- a/script/service/service.lua
+++ b/script/service/service.lua
@@ -179,6 +179,7 @@ function m.reportStatus()
info.text = '😺Lua'
end
info.tooltip = lang.script('WINDOW_LUA_STATUS', {
+ ws = ws.path or '',
ast = files.astCount,
max = files.fileCount,
mem = collectgarbage('count') / 1000,