diff options
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/completion/completion.lua | 2 | ||||
-rw-r--r-- | script/core/hover/description.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index 1a3eeb04..ea5e31eb 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -1216,7 +1216,7 @@ local function insertEnum(state, pos, src, enums, isInArray, mark) or src.type == 'doc.type.boolean' then ---@cast src parser.object enums[#enums+1] = { - label = vm.viewObject(src, state.uri), + label = vm.getInfer(src):view(state.uri), description = src.comment, kind = define.CompletionItemKind.EnumMember, } diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua index bd584d74..d515313b 100644 --- a/script/core/hover/description.lua +++ b/script/core/hover/description.lua @@ -263,7 +263,7 @@ local function buildEnumChunk(docType, name, uri) (enum.default and '->') or (enum.additional and '+>') or ' |', - vm.viewObject(enum, uri) + vm.getInfer(enum):view(uri) ) if enum.comment then local first = true |