EmmyLua / VSCode-EmmyLua

Lua IDE/Debugger Plugin for VSCode
632 stars 89 forks source link

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

Closed matpratta closed 4 months ago

matpratta commented 8 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 8 months ago

please try image

CppCXY commented 4 months ago

this feature has been completed by new language server