EmmyLua / VSCode-EmmyLua

Lua IDE/Debugger Plugin for VSCode
641 stars 95 forks source link

Enums with strings not working as expected on VS Code #138

Closed matpratta closed 7 months ago

matpratta commented 11 months ago

Take the example in the official docs, I tried creating the follwing enum:

---@param event_name string | "'onStart'" | "'onStop'"
function event(event_name) end

When I type the event function, it will show the suggested values (onStart, onStop) in VS Code, but they are added without any quotation marks around. Is there any way of adding those?

CppCXY commented 11 months ago

please try image

CppCXY commented 7 months ago

this feature has been completed by new language server