Closed
Description
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Linux
What is the issue affecting?
Completion, Hover
Expected Behaviour
---@class Foo
---@field ['with quotes'] integer
---@field without_quotes integer
---@type Foo
local bar = {}
Auto-completing bar.
-> 'with quotes' would result in bar['without quotes']
Actual Behaviour
Instead bar.
-> 'with quotes' results in bar[without quotes]
Reproduction steps
Peek.2023-04-25.22-40.mp4
Additional Notes
There are also some visual bugs with the hover text for both the quoted field and the class, which are shown in the clip:
with quotes
field hover showsFoo.nill: integer
bar
hover showswith quotes
with broken syntax highlighting
Log File
No response