File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff 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 ),
Original file line number Diff line number Diff line change 11local json = require ' json'
22local template = require ' config.template'
3+ local util = require ' utility'
34
45local function getType (temp )
56 if temp .name == ' Boolean' then
7677local config = {}
7778
7879for 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::
96102end
97103
98104config [' Lua.telemetry.enable' ].tags = { ' telemetry' }
You can’t perform that action at this time.
0 commit comments