Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vscode-lua-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
vscode-lua-srb2
Commits
305b6268
Commit
305b6268
authored
3 years ago
by
最萌小汐
Browse files
Options
Downloads
Patches
Plain Diff
update schema
parent
1d90e8d5
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
setting/build.lua
+17
-2
17 additions, 2 deletions
setting/build.lua
setting/schema-zh-cn.json
+542
-0
542 additions, 0 deletions
setting/schema-zh-cn.json
setting/schema.json
+542
-0
542 additions, 0 deletions
setting/schema.json
with
1101 additions
and
2 deletions
setting/build.lua
+
17
−
2
View file @
305b6268
...
@@ -4,6 +4,19 @@ local json = require 'json-beautify'
...
@@ -4,6 +4,19 @@ local json = require 'json-beautify'
local
configuration
=
require
'package.configuration'
local
configuration
=
require
'package.configuration'
local
fsu
=
require
'fs-utility'
local
fsu
=
require
'fs-utility'
local
function
addSplited
(
t
,
key
,
value
)
t
[
key
]
=
value
local
left
,
right
=
key
:
match
'([^%.]+)%.(.+)'
if
not
left
then
return
end
local
nt
=
t
[
left
]
or
{
properties
=
{}
}
t
[
left
]
=
nt
addSplited
(
nt
.
properties
,
right
,
value
)
end
local
function
copyWithNLS
(
t
,
callback
)
local
function
copyWithNLS
(
t
,
callback
)
local
nt
=
{}
local
nt
=
{}
for
k
,
v
in
pairs
(
t
)
do
for
k
,
v
in
pairs
(
t
)
do
...
@@ -12,12 +25,14 @@ local function copyWithNLS(t, callback)
...
@@ -12,12 +25,14 @@ local function copyWithNLS(t, callback)
elseif
type
(
v
)
==
'table'
then
elseif
type
(
v
)
==
'table'
then
v
=
copyWithNLS
(
v
,
callback
)
v
=
copyWithNLS
(
v
,
callback
)
end
end
nt
[
k
]
=
v
if
type
(
k
)
==
'string'
and
k
:
sub
(
1
,
#
'Lua.'
)
==
'Lua.'
then
if
type
(
k
)
==
'string'
and
k
:
sub
(
1
,
#
'Lua.'
)
==
'Lua.'
then
nt
[
k
:
sub
(
#
'Lua.'
+
1
)]
=
{
local
ref
=
{
[
'$ref'
]
=
'#/properties/'
..
k
[
'$ref'
]
=
'#/properties/'
..
k
}
}
addSplited
(
nt
,
k
,
ref
)
addSplited
(
nt
,
k
:
sub
(
#
'Lua.'
+
1
),
ref
)
end
end
nt
[
k
]
=
v
end
end
return
nt
return
nt
end
end
...
...
This diff is collapsed.
Click to expand it.
setting/schema-zh-cn.json
+
542
−
0
View file @
305b6268
This diff is collapsed.
Click to expand it.
setting/schema.json
+
542
−
0
View file @
305b6268
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