diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-11-20 18:40:33 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-11-20 18:40:33 +0800 |
commit | 67f6a20b27c98788843883c3712c648e110d781f (patch) | |
tree | 209705e0bc3c2c44d5ffade78cc2c7041eeffdda /server/main.lua | |
parent | a65a1ddb13854c2dfde4c04630a0a942abdafa32 (diff) | |
download | lua-language-server-67f6a20b27c98788843883c3712c648e110d781f.zip |
转移目录
Diffstat (limited to 'server/main.lua')
-rw-r--r-- | server/main.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/server/main.lua b/server/main.lua new file mode 100644 index 00000000..773fb0a8 --- /dev/null +++ b/server/main.lua @@ -0,0 +1,19 @@ +require 'filesystem' +ROOT = fs.current_path() +package.path = (ROOT / 'src' / '?.lua'):string() + .. ';' .. (ROOT / 'src' / '?' / 'init.lua'):string() + +log = require 'log' +log.init(ROOT, ROOT / 'log' / 'test.log') +log.info('Lua 语言服务启动,路径为:', ROOT) + +local dbg = require 'debugger' +dbg:io 'listen:0.0.0.0:546858' +dbg:start() + +require 'utility' +require 'global_protect' +local service = require 'service' +local session = service() + +session:listen() |