Skip to content

Commit f9310f9

Browse files
committed
update config
1 parent 5241f28 commit f9310f9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

script/config/template.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ local template = {
304304
>> {},
305305
['Lua.spell.dict'] = Type.Array(Type.String),
306306
['Lua.telemetry.enable'] = Type.Or(Type.Boolean >> false, Type.Nil) >> nil,
307+
['Lua.misc.parameters'] = Type.Array(Type.String),
307308

308309
-- VSCode
309310
['files.associations'] = Type.Hash(Type.String, Type.String),

tools/configuration.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
local json = require 'json'
22
local template = require 'config.template'
3+
local util = require 'utility'
34

45
local function getType(temp)
56
if temp.name == 'Boolean' then
@@ -76,6 +77,9 @@ end
7677
local config = {}
7778

7879
for name, temp in pairs(template) do
80+
if not util.stringStartWith(name, 'Lua.') then
81+
goto CONTINUE
82+
end
7983
config[name] = {
8084
scope = 'resource',
8185
type = getType(temp),
@@ -93,6 +97,8 @@ for name, temp in pairs(template) do
9397
if temp.name == 'Hash' then
9498
insertHash(config[name], temp)
9599
end
100+
101+
::CONTINUE::
96102
end
97103

98104
config['Lua.telemetry.enable'].tags = { 'telemetry' }

0 commit comments

Comments
 (0)