-
-
Notifications
You must be signed in to change notification settings - Fork 391
Open
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?
Hover
Expected Behaviour
Hi. I've come across the fact that some people want to use angle brackets as a classic description for arguments, like command-line arguments <arg>[, arg]. But VS Code automatically considers these HTML tags in hover block and deletes them. I would like to be able to disable this behavior in per-project (workspace or .luarc) and user settings.
-- Adds <amount> of <item> to character.
---@param item string
---@param amount integer
function Character:AddItem(item, amount) endAlso I like to use markdown style, but not html tags.
I found #996 where it feels like html tags can be disabled without disabling markdown - supportHtml.
Actual Behaviour
It ate my names, they're not html tags.
Reproduction steps
- Place anything in angle brackets in your comment
- Look, it's gone when you hover
Additional Notes
I found some info on this page https://luals.github.io/wiki/annotations/
The below methods can be added to the end of a line:
HTML <br> tag (recommended)
\n newline escape character
Two trailing spaces (may be removed by formatting tools)
Markdown backslash \ ( [not recommended](https://www.markdownguide.org/basic-syntax#line-break-best-practices) )
but only the first one seems to work, and the others don't do anything.
Log File
No response
Metadata
Metadata
Assignees
Labels
No labels
