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
9341ca6c
Commit
9341ca6c
authored
4 years ago
by
最萌小汐
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
b1c58cdb
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
main.lua
+1
-0
1 addition, 0 deletions
main.lua
script/proto/define.lua
+2
-2
2 additions, 2 deletions
script/proto/define.lua
script/service/service.lua
+1
-0
1 addition, 0 deletions
script/service/service.lua
test.lua
+0
-1
0 additions, 1 deletion
test.lua
with
4 additions
and
3 deletions
main.lua
+
1
−
0
View file @
9341ca6c
...
@@ -42,6 +42,7 @@ ROOT = fs.path(expanduser(rootPath))
...
@@ -42,6 +42,7 @@ ROOT = fs.path(expanduser(rootPath))
LOGPATH
=
LOGPATH
and
expanduser
(
LOGPATH
)
or
(
ROOT
:
string
()
..
'/log'
)
LOGPATH
=
LOGPATH
and
expanduser
(
LOGPATH
)
or
(
ROOT
:
string
()
..
'/log'
)
METAPATH
=
METAPATH
and
expanduser
(
METAPATH
)
or
(
ROOT
:
string
()
..
'/meta'
)
METAPATH
=
METAPATH
and
expanduser
(
METAPATH
)
or
(
ROOT
:
string
()
..
'/meta'
)
---@diagnostic disable-next-line: deprecated
debug
.
setcstacklimit
(
200
)
debug
.
setcstacklimit
(
200
)
collectgarbage
(
'generational'
,
10
,
50
)
collectgarbage
(
'generational'
,
10
,
50
)
--collectgarbage('incremental', 120, 120, 0)
--collectgarbage('incremental', 120, 120, 0)
...
...
This diff is collapsed.
Click to expand it.
script/proto/define.lua
+
2
−
2
View file @
9341ca6c
...
@@ -103,7 +103,7 @@ m.DiagnosticDefaultNeededFileStatus = {
...
@@ -103,7 +103,7 @@ m.DiagnosticDefaultNeededFileStatus = {
[
'unused-local'
]
=
'Opened'
,
[
'unused-local'
]
=
'Opened'
,
[
'unused-function'
]
=
'Opened'
,
[
'unused-function'
]
=
'Opened'
,
[
'undefined-global'
]
=
'Any'
,
[
'undefined-global'
]
=
'Any'
,
[
'undefined-field'
]
=
'
Opened
'
,
[
'undefined-field'
]
=
'
Any
'
,
[
'global-in-nil-env'
]
=
'Any'
,
[
'global-in-nil-env'
]
=
'Any'
,
[
'unused-label'
]
=
'Opened'
,
[
'unused-label'
]
=
'Opened'
,
[
'unused-vararg'
]
=
'Opened'
,
[
'unused-vararg'
]
=
'Opened'
,
...
@@ -124,7 +124,7 @@ m.DiagnosticDefaultNeededFileStatus = {
...
@@ -124,7 +124,7 @@ m.DiagnosticDefaultNeededFileStatus = {
[
'close-non-object'
]
=
'Any'
,
[
'close-non-object'
]
=
'Any'
,
[
'count-down-loop'
]
=
'Any'
,
[
'count-down-loop'
]
=
'Any'
,
[
'no-implicit-any'
]
=
'None'
,
[
'no-implicit-any'
]
=
'None'
,
[
'deprecated'
]
=
'
Opened
'
,
[
'deprecated'
]
=
'
Any
'
,
[
'duplicate-doc-class'
]
=
'Any'
,
[
'duplicate-doc-class'
]
=
'Any'
,
[
'undefined-doc-class'
]
=
'Any'
,
[
'undefined-doc-class'
]
=
'Any'
,
...
...
This diff is collapsed.
Click to expand it.
script/service/service.lua
+
1
−
0
View file @
9341ca6c
---@diagnostic disable: deprecated
local
pub
=
require
'pub'
local
pub
=
require
'pub'
local
thread
=
require
'bee.thread'
local
thread
=
require
'bee.thread'
local
await
=
require
'await'
local
await
=
require
'await'
...
...
This diff is collapsed.
Click to expand it.
test.lua
+
0
−
1
View file @
9341ca6c
...
@@ -80,7 +80,6 @@ local function testAll()
...
@@ -80,7 +80,6 @@ local function testAll()
end
end
local
function
main
()
local
function
main
()
debug
.
setcstacklimit
(
1000
)
require
'core.searcher'
.
debugMode
=
true
require
'core.searcher'
.
debugMode
=
true
require
'language'
'zh-cn'
require
'language'
'zh-cn'
require
'utility'
.
enableCloseFunction
()
require
'utility'
.
enableCloseFunction
()
...
...
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