Skip to content
Snippets Groups Projects
Commit 8b6e6603 authored by 最萌小汐's avatar 最萌小汐
Browse files

cleanup

parent 50415f58
Branches
No related tags found
No related merge requests found
// Just some comment
{
"Lua.diagnostics.globals": [
"ERR",
"OUT",
"IN",
"log",
"_G",
"GC",
"ID",
"DEVELOP",
"DBGPORT",
"DBGWAIT",
"tracy",
"LOCALE",
"SHOWSOURCE",
"TRACE",
"FOOTPRINT",
"CONFIGPATH"
],
"Lua.diagnostics.disable": [
"close-non-object",
],
......
......@@ -48,6 +48,7 @@ debug.setcstacklimit(200)
collectgarbage('generational', 5, 25)
--collectgarbage('incremental', 120, 120, 0)
---@diagnostic disable-next-line: lowercase-global
log = require 'log'
log.init(ROOT, fs.path(LOGPATH) / 'service.log')
log.info('Lua Lsp startup, root: ', ROOT)
......
---develop mode, use command line: --develop=true
---@type boolean
DEVELOP = false
---port for `Lua Debug` connecting, use command line: --dbgport=11411
---@type integer
DBGPORT = 0
---need holdon before `Lua Debug` connecting, use command line: --dbgwait=true
---@type boolean
DBGWAIT = false
---displayed language, use command line: --locale="en-us"
---@type '"en-us"'|'"zh-cn"'
LOCALE = 'en-us'
---path of local config file, use command line: --configpath="config.lua"
---@type string
CONFIGPATH = ''
---display the internal data of the hovring token, use command line: --showsource=true
---@type boolean
SHOWSOURCE = false
---trace every searching into log, use command line: --trace=true
---@type boolean
TRACE = false
---trace searching with `too deep!` into log, use command line: --footprint=true
FOOTPRINT = false
......@@ -12,10 +12,12 @@ local function enable()
}
end
end
---@diagnostic disable-next-line: lowercase-global
tracy = originTracy
end
local function disable()
---@diagnostic disable-next-line: lowercase-global
tracy = {
ZoneBeginN = function (info) end,
ZoneEnd = function () end,
......
......@@ -16,6 +16,7 @@ METAPATH = METAPATH or (ROOT .. '/meta')
collectgarbage 'generational'
---@diagnostic disable-next-line: lowercase-global
log = require 'log'
log.init(ROOT, ROOT / 'log' / 'test.log')
log.debug('测试开始')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment