-
-
Notifications
You must be signed in to change notification settings - Fork 383
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Annotations, Hover
Expected Behaviour
Actual Behaviour
Reproduction steps
- Open a new Lua file
- Type in this snippet:
---@alias someType
---| "#"
---@type someType
local someValue
- The hover type info for
someType
will contain miscellaneous characters-- "
Additional Notes
This issue goes away when omitting the last quotation mark:
---@alias someTypeHack
---| "#
---@type someTypeHack
local someValue
I haven't been able to reproduce this with any other special character.
This also pushes anything after the #
character into a comment to the side.
---@alias someType
---| "#tag" -- comment
---@type someType
local someValue
Disabling all libraries did not remove the issue, and I have no plugins enabled.
Log File
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working