summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-20 14:34:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-20 14:34:13 +0800
commit14d55ce96e354870de8082b8cc3aabb58dc5b76f (patch)
tree392cb60cf6c5376cc193a97226e3057e5f95bdbc
parent6386883842d6d3f9f319a641bcc985f2f7f5506d (diff)
downloadlua-language-server-14d55ce96e354870de8082b8cc3aabb58dc5b76f.zip
log version
-rw-r--r--main.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.lua b/main.lua
index 7a2e1b9d..1f52fd65 100644
--- a/main.lua
+++ b/main.lua
@@ -2,8 +2,9 @@ local currentPath = debug.getinfo(1, 'S').source:sub(2)
local rootPath = currentPath:gsub('[/\\]*[^/\\]-$', '')
rootPath = (rootPath == '' and '.' or rootPath)
loadfile(rootPath .. '/platform.lua')('script')
-local fs = require 'bee.filesystem'
-local util = require 'utility'
+local fs = require 'bee.filesystem'
+local util = require 'utility'
+local version = require 'version'
local function loadArgs()
for _, v in ipairs(arg) do
@@ -44,6 +45,7 @@ log.info('Lua Lsp startup, root: ', ROOT)
log.debug('ROOT:', ROOT:string())
log.debug('LOGPATH:', LOGPATH)
log.debug('METAPATH:', METAPATH)
+log.debug('VERSION:', version.getVersion())
require 'tracy'