VSCode-EmmyLua icon indicating copy to clipboard operation
VSCode-EmmyLua copied to clipboard

Enums with strings not working as expected on VS Code

Open matpratta opened this issue 1 year ago • 1 comments

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?

matpratta avatar Dec 16 '23 03:12 matpratta

please try image

CppCXY avatar Dec 22 '23 02:12 CppCXY

this feature has been completed by new language server

CppCXY avatar Apr 25 '24 12:04 CppCXY