Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lua-language-server-srb2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LJ Sonic
lua-language-server-srb2
Commits
8b6e6603
Commit
8b6e6603
authored
4 years ago
by
最萌小汐
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
50415f58
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.vscode/settings.json
+0
-18
0 additions, 18 deletions
.vscode/settings.json
main.lua
+1
-0
1 addition, 0 deletions
main.lua
script/global.d.lua
+30
-0
30 additions, 0 deletions
script/global.d.lua
script/tracy.lua
+2
-0
2 additions, 0 deletions
script/tracy.lua
test.lua
+1
-0
1 addition, 0 deletions
test.lua
with
34 additions
and
18 deletions
.vscode/settings.json
+
0
−
18
View file @
8b6e6603
//
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"
,
],
...
...
This diff is collapsed.
Click to expand it.
main.lua
+
1
−
0
View file @
8b6e6603
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
script/global.d.lua
0 → 100644
+
30
−
0
View file @
8b6e6603
---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
This diff is collapsed.
Click to expand it.
script/tracy.lua
+
2
−
0
View file @
8b6e6603
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
test.lua
+
1
−
0
View file @
8b6e6603
...
...
@@ -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
(
'测试开始'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment