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
7d1c0016
Commit
7d1c0016
authored
4 years ago
by
最萌小汐
Browse files
Options
Downloads
Patches
Plain Diff
#335 change the arg to `--logpath=xxx`
parent
0e14b83e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
changelog.md
+2
-2
2 additions, 2 deletions
changelog.md
main.lua
+2
-2
2 additions, 2 deletions
main.lua
script/library.lua
+1
-5
1 addition, 5 deletions
script/library.lua
with
5 additions
and
9 deletions
changelog.md
+
2
−
2
View file @
7d1c0016
# changelog
## 1.8.3
*
`NEW`
specify path of
`log`
and
`meta`
by
`
LOGPATH="
xxx
"
`
and
`
METAPATH="
XXX
"
`
in command line
*
`CHG`
got arg after script name:
`lua-language-server.exe main.lua
LANG="zhCN" LOGPATH="/log"
`
*
`NEW`
specify path of
`log`
and
`meta`
by
`
--logpath=
xxx`
and
`
--metapath=
XXX`
in command line
*
`CHG`
got arg after script name:
`lua-language-server.exe main.lua
--logpath=D:\log --metapath=D:\meta --develop=false
`
*
`FIX`
runtime errors
## 1.8.2
...
...
This diff is collapsed.
Click to expand it.
main.lua
+
2
−
2
View file @
7d1c0016
...
...
@@ -6,7 +6,7 @@ ROOT = fs.path(rootPath)
local
function
loadArgs
()
for
_
,
v
in
ipairs
(
arg
)
do
local
key
,
value
=
v
:
match
'([%w_]+)%=(.+)'
local
key
,
value
=
v
:
match
'
^%-%-
([%w_]+)%=(.+)'
if
value
==
'true'
then
value
=
true
elseif
value
==
'false'
then
...
...
@@ -14,7 +14,7 @@ local function loadArgs()
elseif
tonumber
(
value
)
then
value
=
tonumber
(
value
)
end
_G
[
key
]
=
value
_G
[
key
:
upper
()
]
=
value
end
end
...
...
This diff is collapsed.
Click to expand it.
script/library.lua
+
1
−
5
View file @
7d1c0016
...
...
@@ -168,10 +168,6 @@ local function compileMetaDoc()
version = version,
language = langID,
})
fs.create_directories(metapath:parent_path())
if fs.exists(metapath) then
--return
end
local metaLang = loadMetaLocale('
en
-
US
')
if langID ~= '
en
-
US
' then
...
...
@@ -181,7 +177,7 @@ local function compileMetaDoc()
m.metaPath = metapath:string()
m.metaPaths = {}
fs.create_director
y
(metapath)
fs.create_director
ies
(metapath)
local templateDir = ROOT / '
meta
' / '
template
'
for fullpath in templateDir:list_directory() do
local filename = fullpath:filename()
...
...
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