fix: Stringify all keys; Closes #1

This commit is contained in:
Myzel394 2024-04-19 21:00:49 +02:00
parent 52d56f2e07
commit e47fd7713b
No known key found for this signature in database
GPG Key ID: DEC4AAB876F73185

View File

@ -54,7 +54,7 @@ function M:get_entries_from_lua_json(t)
local raw_value = _raw_value local raw_value = _raw_value
---@type Entry ---@type Entry
local entry = { local entry = {
key = k, key = tostring(k),
value = get_contents_from_json_value(raw_value), value = get_contents_from_json_value(raw_value),
position = { position = {
line_number = raw_value.line_number, line_number = raw_value.line_number,
@ -151,7 +151,7 @@ function M:get_entries_from_lsp_symbols(symbols)
---@type Entry ---@type Entry
local entry = { local entry = {
key = key, key = tostring(key),
value = M:parse_lsp_value(symbol), value = M:parse_lsp_value(symbol),
position = { position = {
line_number = symbol.range.start.line + 1, line_number = symbol.range.start.line + 1,