summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-04-18 18:13:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-04-18 18:13:04 +0800
commit9bce7bedebc352b22f26ee3572ce3407b555b770 (patch)
treecd690a678fcf542f8dcfbeec78c10b2f1f5d615e /script
parente1e7926500c28026f358b40d0e512279b65fb34f (diff)
downloadlua-language-server-9bce7bedebc352b22f26ee3572ce3407b555b770.zip
和客户端连接模式的日志
Diffstat (limited to 'script')
-rw-r--r--script/proto/proto.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/proto/proto.lua b/script/proto/proto.lua
index 78400f97..5193fc9a 100644
--- a/script/proto/proto.lua
+++ b/script/proto/proto.lua
@@ -231,6 +231,7 @@ end
function m.listen(mode, socketPort)
m.mode = mode
if mode == 'stdio' then
+ log.info('Listen Mode: stdio')
if platform.os == 'windows' then
local windows = require 'bee.windows'
windows.filemode(io.stdin, 'b')
@@ -246,6 +247,10 @@ function m.listen(mode, socketPort)
local server = net.listen('unix', unixPath)
+ log.info('Listen Mode: socket')
+ log.info('Listen Port:', socketPort)
+ log.info('Listen Path:', unixPath)
+
assert(server)
local dummyClient = {