summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-08-07 17:13:42 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-08-07 17:13:42 +0800
commit40fd1d7c4c9bed4842acfdfe4e1cbb0307bab941 (patch)
tree7b3c807e511b23c3bf846703ea29b4ee665e3f23
parentdb509e65deab282b89022d27e24767e4a07b8ff6 (diff)
downloadlua-language-server-40fd1d7c4c9bed4842acfdfe4e1cbb0307bab941.zip
say hello at first to make everyone happy
-rw-r--r--script/service/service.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/script/service/service.lua b/script/service/service.lua
index a9a02316..3fad865a 100644
--- a/script/service/service.lua
+++ b/script/service/service.lua
@@ -249,6 +249,10 @@ function m.testVersion()
end
end
+function m.sayHello()
+ proto.notify('$/hello', 'world')
+end
+
function m.lockCache()
local fs = require 'bee.filesystem'
local sp = require 'bee.subprocess'
@@ -284,6 +288,8 @@ function m.start()
require 'provider'
+ m.sayHello()
+
m.eventLoop()
end