Skip to content

Commit

Permalink
fix(build): properties must be an object not an array
Browse files Browse the repository at this point in the history
  • Loading branch information
AThePeanut4 committed Jun 14, 2024
1 parent 7b3e819 commit befcc1f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lua/neoconf/build/schemas.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,15 @@ function M.get_schema(schema)
local json = vim.json.decode(Util.fetch(schema.package_url)) or {}
local config = json.contributes and json.contributes.configuration or json.properties and json

local properties = {}
local properties = vim.empty_dict()

if Util.islist(config) then
for _, c in pairs(config) do
vim.list_extend(properties, c.properties)
if c.properties then
for k, v in pairs(c.properties) do
properties[k] = v
end
end
end
elseif config.properties then
properties = config.properties
Expand Down

0 comments on commit befcc1f

Please sign in to comment.