summaryrefslogtreecommitdiff
path: root/server-beta/src/pub/pub.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-24 10:06:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-24 10:06:09 +0800
commit6cf50a3fdfe50baebdd2888b549c2238f35f0051 (patch)
treeb8b5459802fce548d51eaf398d2c300f8af73a00 /server-beta/src/pub/pub.lua
parente3c493e3cd4954ac3f47e455025cc2922ab10099 (diff)
downloadlua-language-server-6cf50a3fdfe50baebdd2888b549c2238f35f0051.zip
附加子线程
Diffstat (limited to 'server-beta/src/pub/pub.lua')
-rw-r--r--server-beta/src/pub/pub.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server-beta/src/pub/pub.lua b/server-beta/src/pub/pub.lua
index ca9d7382..bbd2ed89 100644
--- a/server-beta/src/pub/pub.lua
+++ b/server-beta/src/pub/pub.lua
@@ -13,6 +13,8 @@ package.cpath = %q
collectgarbage 'generational'
log = require 'brave.log'
+
+dofile(%q)
local brave = require 'brave'
brave.register(%d)
]]
@@ -44,6 +46,7 @@ function m.recruitBraves(num)
thread = thread.thread(braveTemplate:format(
package.path,
package.cpath,
+ (ROOT / 'debugger.lua'):string(),
id
)),
taskMap = {},