VSCode-EmmyLua
VSCode-EmmyLua copied to clipboard
Enums with strings not working as expected on VS Code
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?
please try
this feature has been completed by new language server