summaryrefslogtreecommitdiff
path: root/script/service/service.lua
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/service/service.lua
parentf0f9a4ea4509dfb764a5dfebd5e86e679c8f4b03 (diff)
downloadlua-language-server-a48139e5dd7e7a6e9e3bd00a41334a1e66d1a227.zip
update
Diffstat (limited to 'script/service/service.lua')
-rw-r--r--script/service/service.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/script/service/service.lua b/script/service/service.lua
index 76478394..4594b9aa 100644
--- a/script/service/service.lua
+++ b/script/service/service.lua
@@ -11,6 +11,7 @@ local lang = require 'language'
local ws = require 'workspace'
local time = require 'bee.time'
local fw = require 'filewatch'
+local furi = require 'file-uri'
local m = {}
m.type = 'service'
@@ -189,8 +190,14 @@ function m.reportStatus()
else
info.text = '😺Lua'
end
+
+ local roots = {}
+ for i, scp in ipairs(ws.folders) do
+ roots[i] = furi.decode(scp.uri)
+ end
+
info.tooltip = lang.script('WINDOW_LUA_STATUS', {
- ws = ws.rootPath or '',
+ ws = table.concat(roots, '/'),
ast = files.astCount,
max = files.fileCount,
mem = collectgarbage('count') / 1000,
@@ -226,8 +233,6 @@ function m.start()
require 'provider'
m.startTimer()
-
- ws.reload()
end
return m