summaryrefslogtreecommitdiff
path: root/server-beta/main.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-24 09:53:11 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-24 09:53:11 +0800
commite3c493e3cd4954ac3f47e455025cc2922ab10099 (patch)
tree7e80c5562bf8fc33bfe5922dc34c5f7904b68f39 /server-beta/main.lua
parent88cdad4998bd2c0f644451e755accc8bdfb0f80c (diff)
downloadlua-language-server-e3c493e3cd4954ac3f47e455025cc2922ab10099.zip
整理调试器代码
Diffstat (limited to 'server-beta/main.lua')
-rw-r--r--server-beta/main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server-beta/main.lua b/server-beta/main.lua
index 83077681..91efcf34 100644
--- a/server-beta/main.lua
+++ b/server-beta/main.lua
@@ -2,7 +2,7 @@ local currentPath = debug.getinfo(1, 'S').source:sub(2)
local rootPath = currentPath:gsub('[/\\]*[^/\\]-$', '')
dofile(rootPath .. '/platform.lua')
local fs = require 'bee.filesystem'
-ROOT = fs.current_path() / rootPath
+ROOT = fs.path(rootPath)
LANG = LANG or 'en-US'
collectgarbage 'generational'
@@ -12,6 +12,6 @@ log.init(ROOT, ROOT / 'log' / 'service.log')
log.info('Lua Lsp startup, root: ', ROOT)
log.debug('ROOT:', ROOT:string())
-xpcall(dofile, log.debug, rootPath .. '/debugger.lua')
+dofile(rootPath .. '/debugger.lua'):wait()
local service = require 'service'
service.start()